部署TetherUSDT合约到Rinkeby测试网络

1、从etherscan上找到对应的USDT合约代码

https://etherscan.io/address/0xdac17f958d2ee523a2206206994597c13d831ec7#codehttps://etherscan.io/address/0xdac17f958d2ee523a2206206994597c13d831ec7#code2、去remix在线编译
https://remix.ethereum.org/https://remix.ethereum.org/把上面复制的代码粘贴进去编译,compiler版本选择上述contract页面中的compiler version

3、切换到deploy界面,选择injected Web,此时会自动调用metamask,切换到rinkeby网络,选择一个有足够ETH测试币的账户

4、contract选择TetherToken,deploy中填入相关参数,supply就是发行的数量,其他字段与主网合约一致

5、点击transact,大功告成,合约地址可从部署合约的交易中查看到

找到交易Hash,在rinkeby.etherscan.io中打开交易详情页面

​https://rinkeby.etherscan.io/tx/{交易hash}

找到对应的合约地址,打开合约详情页面

​https://rinkeby.etherscan.io/​address/{合约地址}​

猜你喜欢

转载自blog.csdn.net/watson2017/article/details/122439093