const HttpProvider = TronWeb.providers.HttpProvider;
const fullNode = new HttpProvider('https://api.trongrid.io'); const solidityNode = new HttpProvider('https://api.trongrid.io'); const eventServer = 'https://api.trongrid.io'; const privateKey = ''; const tronWeb = new TronWeb( fullNode, solidityNode, eventServer, privateKey ); tronWeb.setDefaultBlock('latest'); window['tronWeb'] = tronWeb;
是不是我的思路有问题,怎么搞啊大佬们