合约地址: https://evm.confluxscan.net/address/0xc6e865c213c89ca42a622c5572d19f00d84d7a16
- 要求有node环境
- 克隆代码
https://github.com/terryso/web3_scripts.git
- 进入代码目录,运行
npm install ethers
- 配置钱包私钥,将wallets.json.example改名为wallets.json
- 用编辑工具打开wallets.json,将你的私钥填写进去.
其中privateKey代表一个钱包的私钥,transferTimes表示这个钱包你要转账多少次
[ { "privateKey": "your private key 1", "transferTimes": 2 }, { "privateKey": "your private key 2", "transferTimes": 3 } ]
- 运行脚本
node cfx_transfer.js