TronWeb Object

Create an instance of the tronWeb javascript library. In addition to the utility functions, it includes all related modules.

Returns
Object

Example

const TronWeb = require('tronweb')
const HttpProvider = TronWeb.providers.HttpProvider;
const fullNode = new HttpProvider("https://api.trongrid.io");
const solidityNode = new HttpProvider("https://api.trongrid.io");
const eventServer = new HttpProvider("https://api.trongrid.io");
const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145";
const tronWeb = new TronWeb(fullNode,solidityNode,eventServer,privateKey);

> tronWeb.trx
> tronWeb.transactionBuilder
> tronWeb.utils