# Retroactive Base Layer 2

By [CryptoVietNam Labs](https://paragraph.com/@cryptovietnamlabs) · 2023-04-02

---

Base là một mạng lưới Ethereum Layer 2 cung cấp một cách an toàn, chi phí thấp và thân thiện với nhà phát triển để xây dựng các ứng dụng phi tập trung trên mạng lưới cho bất kỳ ai, ở bất cứ đâu.

Đó là một chuỗi khối được tạo ra bởi Coinbase và được xây dựng trên một ngăn xếp OP mã nguồn mở, phối hợp với Optimism. Sự tích hợp hoàn hảo với Coinbase, việc gửi tiền pháp lý dễ dàng và truy cập hơn 110 triệu người dùng và hơn 80 tỷ đô la tài sản trong hệ sinh thái Coinbase cho chúng ta biết rằng mạng lưới sẽ được yêu cầu và có thể thưởng cho những người ủng hộ sớm trong tương lai.

**Bước 1: Adding a testnet into MetaMask**

*   Truy cập [Chainlist](https://chainlist.org/?testnets=true&search=base);
    
*   Tìm từ khoá Base;
    
*   Tìm Base Goerli Testnet and click on “Add to metamask”.
    

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

**Bước 2: Claiming testnet tokens**

Truy cập [Ethereum Goerli](https://goerlifaucet.com/):

*   Đăng nhập
    
*   Nhập mã ví
    
*   Click "Send Me ETH"
    

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

Claiming test tokens on Goerli Base:

*   Truy cập [faucet](https://faucet.quicknode.com/drip);
    
*   Kết nối
    
*   Choose the “Base Goerli” network;
    
*   Click “Continue”.
    

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

![Click “No thanks, just send me 0.05 BASE”.](https://storage.googleapis.com/papyrus_images/f240fde6714957fd43b0617e135af86b9ca27015ad0c04f46107264a843a575c.png)

Click “No thanks, just send me 0.05 BASE”.

**Bước 3: Using a bridge from Base**

*   Truy cập [bridge](https://bridge.base.org/);
    
*   Connect your wallet.
    

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

*   Chọn Bridge section;
    
*   Chọn Deposit tab;
    
*   Nhập amount tokens muốn chuyển từ Ethereum Goerli sang Base Goerli;
    
*   Click “Deposit ETH”.
    

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

*   Chọn sang tab withdraw
    
*   Nhập amount tokens muốn withdraw;
    
*   Click on “Withdraw”.
    

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

**Bước 4: Using a bridge from Axelar**

*   Join [Discord](https://discord.com/invite/axelar) dự án
    
*   Chọn #faucet channel;
    
*   Post “!faucet base (wallet address…)”;
    

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

*   Sau khi nhận mã token truy cập trang [bridge](https://testnet.satellite.money/?source=ethereum&destination=base&asset_denom=uausdc&destination_address=);
    
*   Connect your wallet;
    
*   Nhập số token muốn chuyển
    
*   Nhấn “Fill with” và kết nối ví metamask
    
*   Click “Generate Deposit Address”;
    
*   Xác nhận giao dịch
    

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

**Bước 5: Testing the DEX on Base**

*   Truy cập [website](https://www.cap.io/trade/ETH-USD);
    
*   Kết nối ví với mạng Base Goerli network;
    
*   Sau đó chọn tab trade rồi tiến hành test trade
    
*   Chọn Long/Short
    
*   Chọn đòn bẩy
    
*   Nhập Size lệnh
    
*   Sau đó nhấn xác nhận Buy Long hoặc Sell Short
    

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

*   Chỉnh sửa lệnh, đóng hoặc điều chỉnh TP/SL
    

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

*   Chọn sang tab Pool
    
*   Click on “Deposit”;
    
*   Nhập số token muốn add vô pool
    
*   Click on “Deposit”.
    

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

*   Sau đó chọn tab Withdraw
    
*   Nhập số token muốn withdraw;
    
*   Click “Withdraw”.
    

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

**Bước 6: Deploying a Base contract**

*   Truy cập [Remix](https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js);
    
*   Chọn icon create a new file;
    
*   Name the new file “1\_Storage.sol”.
    

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

*   Copy the code from this [document](https://docs.base.org/guides/deploy-smart-contracts):
    

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

*   Chọn “Solidity Compiler”
    
*   Choose the same Compiler as on the screenshot below
    
*   Nhập code copy trước đó
    
*   Click on “Compile 1\_Storage.sol”.
    

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

*   Chuyển sang “DEPLOY & RUN TRANSACTIONS”;
    
*   Chọn “ENVIRONMENT” → MetaMask (in my case), đổi sang network Goerli Base;
    
*   Click on “Deploy”;
    
*   Confirm the transaction
    

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

Tương tác với contract:

*   Nhấn vào deployed contract;
    
*   Ở phần “Mint” field, sau đó nhập wallet address;
    
*   Click “Mint”;
    
*   Confirm the transaction.
    

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

**Bước 7: Getting roles**

*   Truy cập [guild.xyz](https://guild.xyz/buildonbase)
    
*   Connect your wallet;
    
*   Follow [Base](https://twitter.com/buildonbase) and [Coinbase](https://twitter.com/coinbase) on Twitter;
    
*   Click vào icon ngôi sao ở góc trên phải: [base.org/chains](https://github.com/base-org/chains), [base.org/node](https://github.com/base-org/node);
    
*   Để lấy roles holding NFTs, AE có thể mua ở trên Opensea, [Day 1 Adopter](https://opensea.io/collection/base-introduced), [Based and Optimistic](https://opensea.io/assets/optimism/0xe22fd22b3fc0ecd5217d2461d15159a7dfc38790/0)
    

**Bước 8: Passing Layer3**

*   Connect your wallet;
    
*   Làm theo các bước
    
*   Get an NFT from Layer3.
    

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

Bước 9: Playing a game on Base

Truy cập [Cat Attack](https://catattacknft.vercel.app/)

*   Mint con mèo cấp độ 1
    
*   Gửi nó cho người chơi khác và nhận con mèo cấp độ 2
    
*   Burn 2 con mèo cấp độ 2 thì được con mèo cấp độ 3
    
*   Sau khi nhận được một con mèo cấp độ 3, bạn cần bắt đầu tấn công các con mèo của người chơi khác để kiếm điểm, càng có nhiều điểm, thưởng cho hoạt động chơi game càng cao.
    

AE Có thể đọc thêm [guide](https://app.nfd.gg/ru/reviews/testnets/640b0ac86e94bb155cc95de0) nó ở đây.

Bài viết đến đây là hết. AE có thể join nhóm telegram của nhóm để cùng thảo luận thêm nhé. Have nice day!

[https://t.me/CryptoVietnamLabs](https://t.me/CryptoVietnamLabs)

[https://t.me/CryptoVietnamGems](https://t.me/CryptoVietnamGems)

[https://t.me/CryptoVNLChat](https://t.me/CryptoVNLChat)

[https://twitter.com/Eric\_SD\_KN](https://twitter.com/Eric_SD_KN)

---

*Originally published on [CryptoVietNam Labs](https://paragraph.com/@cryptovietnamlabs/retroactive-base-layer-2)*
