# Scroll空投 **Published by:** [maoming.eth](https://paragraph.com/@maoming/) **Published on:** 2023-06-19 **URL:** https://paragraph.com/@maoming/scroll ## Content 1. 领水 钱包添加测试网 进入官网:https://scroll.io/portal 点击“Connect Wallet”,添加Goerli Testnet(如图) 点击“Connect Wallet”,添加Scroll Alpha Testnet(如图) 为了完成交互,Goerli Testnet必须要有测试的以太币。两种方式获得👇 1⃣ 付费方式:https://testnetbridge.com 可直接用Arbitrum/Optimism上的ETH购买测试币 2⃣ 免费方式:https://goerlifaucet.com 可每天少量领取0.02测试币 2. 跨桥 跨链测试币 进入官方跨链桥:https://scroll.io/bridge 把ETH测试币,从Goerli Testnet跨到Scroll Alpha Testnet 3. dapp交互 交互Uniswap(1) 进入官网:uniswap-v3.scroll.io 连接钱包 在“兑换”界面,将0.001ETH兑换为USDC 在“流动性池”界面,点击“新仓位” 选择“ETH”及“USDC” 其余设定可随意,或跟随下图 点击“批准USDC”/“预览”,钱包确认 完成 交互Aave(1) 进入官网:https://app.aave.com 连接钱包 点击右上角的设定,打开“Testnet mode”选项 如图点击两个框框,选择Scroll Alpha Testnet的公链 点击Supply,质押ETH 点击Borrow,借贷DAI 完成 4.合约交互 部署NFT合约(1) 进入Openzeppelin官网:https://docs.openzeppelin.com/contracts/4.x/wizard 如图设置,选择“ERC721”/“Mintable” 点击“Open in Remix” https://remix.ethereum.org/ // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract MyToken is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; constructor() ERC721("MyToken", "MTK") {} function safeMint(address to) public onlyOwner { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); } } 编译 部署NFT合约 点击“SafeMint” 在“to”的栏目中,输入自己的钱包地址 在“tokenId”中,输入“20” 点击“transact” 钱包点击确认就完成了 ## Publication Information - [maoming.eth](https://paragraph.com/@maoming/): Publication homepage - [All Posts](https://paragraph.com/@maoming/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@maoming): Subscribe to updates