# 大毛  Coinbase打造 OP力挺的新 L2项目Base 部署智能合约并领取NFT教程

By [Web3撸毛家](https://paragraph.com/@web3-57) · 2023-04-11

---

### L2正在主导币圈，最新的 L2大毛空投就是Base了

![](https://storage.googleapis.com/papyrus_images/abfd5136337a580a4fd71ec056f985657e913e3e1c0c9e8a4e698dde0e304b4c.png)

官网

[

Base
----

Base is an open stack that empowers builders, creators, and people everywhere to build apps, grow businesses, create what they love, and earn onchain.

https://www.base.org

![](https://storage.googleapis.com/papyrus_images/726176724f7d20305710e6664c082ebe005a4b6afe7151cda7725339fe698b75.png)

](https://base.org/)

官推

背后是头部交易所Coinbase和头部正统L2 Optimism的强力支持，它将是下一个独角兽。

**官方说不发币，DYDX、ARB、OP官方曾经都说类似的话，结果都是巨毛，你懂的。**

下面将介绍如何获得Base Builder NFT的教程。

教程开始
----

![](https://storage.googleapis.com/papyrus_images/d87678095025a2155ce05df858cb57bafdb0593f3bb115e0ef2dc097c536f388.png)

### 一.将 Goerli 测试网桥接到 Base Goerli 测试网

如果没有ETH Goerli测试代币可以先去水龙头领取

[

Ethereum Sepolia Faucet
-----------------------

A fast and reliable Ethereum Sepolia testnet faucet for blockchain developers.

https://www.alchemy.com

![](https://storage.googleapis.com/papyrus_images/8c288575eb776a78157dfb34aebbbf0288fbd414d87c0c5184d4f82c1809e1fb.png)

](https://goerlifaucet.com/)

转到网站 bridge

[

Bridges - Base Documentation
----------------------------

Documentation for bridging assets to Base. This page covers how to bridge ETH and ERC-20s between Ethereum (L1) and Base along with essential information.

https://docs.base.org

![](https://storage.googleapis.com/papyrus_images/c579bd940abb357c993cb554eb2ff1cb88ecfc023f8ddc748f4d8225801994ed.png)

](https://bridge.base.org/)

连接你的钱包进行跨链桥

![](https://storage.googleapis.com/papyrus_images/bc73067b3759d06dc14f25192ba5659f5d01fd4b5411272e04fc6d2b79259c09.png)

### 二.智能合约部署

登录

复制这个脚本

* * *

    // SPDX-License-Identifier: GPL-3.0
    
    pragma solidity >=0.8.2 <0.9.0;
    
    
    contract testBASE {
    
        uint256 number;
    
    
        function store(uint256 num) public {
            number = num;
        }
    
    
        function retrieve() public view returns (uint256){
            return number;
        }
    }
    

* * *

在 Remix Ethereum 中，点击“New File”，创建你的 mane 文件。

![](https://storage.googleapis.com/papyrus_images/99fe53edb6b91d3d24a5eae5e4b0fb717238bd5a88c0076afde9a5aa50f03605.png)

进入文件，并粘贴复制的脚本

![](https://storage.googleapis.com/papyrus_images/787cce96b162ce86533f58205ea901f1a60038607f38d898c6163242a02ae077.png)

进入“Solidity compiler”，设置你的编译器“0.8.19+commit.7dd6d404”，然后点击Compile your file name

![](https://storage.googleapis.com/papyrus_images/9acf6df97116501c04e0124642690dfc64d000b85ac10a5e78a0b8d0b638d250.png)

![](https://storage.googleapis.com/papyrus_images/742c54657e357946130a7a15561064ebbb5c73b6537cbf328a7067f7e4e22bca.png)

然后进入 “Deploy&run transactions”，链接钱包

![](https://storage.googleapis.com/papyrus_images/12a0ba4aefeaf34b30f4b265b0c41b8c25d12aacc0f6486714aff785f2e42e71.png)

钱包连接好后，点击 “Deploy”

![](https://storage.googleapis.com/papyrus_images/142b5f71d4cb39fea1dbe0c0f69c2bc3f707ac7df50ed514ef6715d9fbc85ada.png)

点击“Send Transaction” ，确认

**注意：确保Gas为 “Agressive”状态**

![](https://storage.googleapis.com/papyrus_images/4ffd0c36e2351ae237d0337ef1597d28ac27750328b0d1b5cfe1449709d6b9c3.png)

检查你的Transsaction，并复制你的合约

![](https://storage.googleapis.com/papyrus_images/097cad0fbb0803bda44ff49b06cd2fbf9a639af8f1a3a5cf10cb8f67ad5f923e.png)

![](https://storage.googleapis.com/papyrus_images/b15ea6c48362bd28b92f71f9de330c5c6b1c58559ae921615d29f85f523846fe.png)

完成后进入下一步

### 三.申请你的NFT

登录

[

Base
----

Base is an open stack that empowers builders, creators, and people everywhere to build apps, grow businesses, create what they love, and earn onchain.

https://www.base.org

![](https://storage.googleapis.com/papyrus_images/726176724f7d20305710e6664c082ebe005a4b6afe7151cda7725339fe698b75.png)

](https://quests.base.org/)

连接你的钱包，粘贴你的合约

![](https://storage.googleapis.com/papyrus_images/146fea614c3d793c04c4452560273938353ecdb30e9e3df6c8a5007ba37c770d.png)

领取你的 NFT

![](https://storage.googleapis.com/papyrus_images/f0db658b1d18deb736735b9d4d5ff739ecaa38e6b1082ed670e4b09b86aa72e9.png)

完成

![](https://storage.googleapis.com/papyrus_images/f20aa66e26b644e9a51f965b3103679465f3e63130fe4478b98ea01adc94b139.png)

**Crypto 撸毛家**

**撸毛 撸毛 撸毛 空投 空投 空投 暴富 暴富 暴富**

---

*Originally published on [Web3撸毛家](https://paragraph.com/@web3-57/coinbase-op-l2-base-nft)*
