Utilisationexchange.IO()
La fonction appelle la méthode RPC d'Ethereum.
- Vérifiez le solde d'ETH dans le portefeuille
exchange.IO("api", "eth", "eth_getBalance", owner, "latest") // owner为具体钱包地址
exchange.IO("api", "eth", "send", toAddress, toAmount) // toAddress为转账时,接收ETH的钱包地址,toAmount为数量
exchange.IO("api", "eth", "eth_gasPrice")
exchange.IO("api", "eth", "eth_estimateGas", data)