tronWeb - TRON JavaScript API

tronWeb aims to deliver a unified, seamless development experience influenced by Ethereum’s Web3 implementation. We have taken the core ideas and expanded upon it to unlock the functionality of TRON’s unique feature set along with offering new tools for integrating DApps in the browser, Node.js and IoT devices.

tronWeb is created as an instance object with utility functions that allows you to interact with Tron Network to build Dapps.

tronWeb.trx provides access to on-chain information including account, block, transaction using tronWeb.fullNode

tronWeb.transactionBuilder enables you to create transactions which can be signed later.

tronWeb.contract allows you to deploy smart contracts to the tron network and execute its methods

tronWeb.utils consists utility functions including encode/decode parameters to/from ABI, type casting, type comparing, value validating, etc.

API Reference