
JavaScript SDK for TRON: build, sign and send transactions and call contracts from apps and backends.
TronWeb is the JavaScript SDK for the TRON blockchain. A developer installs the tronweb npm package and uses it from a browser DApp, a Node.js backend or an IoT device to manage accounts, build and sign transactions, call smart contracts and talk to TRON nodes.
Its API is modeled on Ethereum's Web3.js, so developers coming from Ethereum recognize the shape, and it adds interfaces for features that exist only on TRON: the Bandwidth and Energy resource model, TRC-10 tokens and Stake 2.0 staking and delegation. A TronWeb instance is pointed at a full node host, typically a TronGrid endpoint, and amounts are handled in sun (1 TRX = 1,000,000 sun).
It is the default starting point for JavaScript and TypeScript work on TRON, and the TRON docs' quick start uses it to send a first transaction on the Shasta testnet. The docs warn against putting private keys in frontend code: browser apps should request signatures from TronLink or a wallet adapter, while backend scripts can load keys from environment variables. State-changing contract calls need a sensible fee_limit, which caps the Energy a call may consume.
TronWeb works against TRON Mainnet and the Shasta and Nile testnets. Install it with npm install tronweb; documentation is at tronweb.network and the source is on GitHub under tronprotocol.
Key features
TronWeb is a Developer Tooling project. JavaScript SDK for TRON: build, sign and send transactions and call contracts from apps and backends.
TronWeb is built by TRON. The product is at the mainnet stage.
TronWeb is categorized under tron, tronweb and javascript on Dapping.
TronWeb has no builder reviews on Dapping yet, so it carries no rating. Reviews are written by individual builders, and moderated or removed reviews are excluded from the rating.
TronWeb is not currently marked verified on Dapping. Any token or contract details shown for TronWeb are inspection context only. Verification is an identity signal, not an audit, an endorsement, or investment advice. Check official links, contract addresses, permissions and audits independently before interacting.