Create an instance of the tronWeb javascript library. It includes all relevant modules in addition to utility functions.

address

Helper object that allows you to convert between the hexadecimal/base58 and private key representations of a TRON address. Note: if you want to convert generic data to a hexadecimal string, use the function tronweb.tohex.

contract

Create the contract object that wraps the ABI. Allows you to easily call functions on a contract.

An optional ABI and address can be provided, although the ABI on the blockchain is included in all contracts on the field, so the ABI is not required.

Create account

The Helper function generates a new combination of private key and address. This account is not active on the network.

This API exposes the private key of the new address. Don’t use it in any unsafe environment.