Web3.js 获取代币余额

 web3, eth

获取web3 var Web3 = require('web3'); var ethereumUri = 'http://47.101.47.204:8545'; let web3 = new Web3(); web3.setProvider(new web3.providers.HttpProvider(ethereumUri)); 获取代币abi (暂时用接口,还没研究出来获取方法) async function getTokensABI( 阅读全文