注册ABI

调用合约时,如果使用标准的ERC20方法,则无需注册即可直接调用。调用标准合约以外的方法需要先注册ABI内容:exchange.IO("abi", tokenAddress, abiContent)

获取合约的ABI内容可以通过以下URL获取,仅需提取result字段。

https://api.etherscan.io/api?module=contract&action=getabi&address=0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45