npm explorer

tronweb

v6.2.0TypeScript

JavaScript SDK that encapsulates the TRON HTTP API

TRONtronweb
0/weekUpdated 4 days agoMITUnpacked: 10.1 MB
Published by Tron Protocol
npm install tronweb
RepositoryHomepagenpm

















What is TronWeb?

TronWeb aims to deliver a unified, seamless development experience influenced by Ethereum's Web3 implementation. We have taken the core ideas and expanded upon them 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.

To better support its use in TypeScript projects, we have rewritten the entire library in TypeScript. And to make the TronWeb API more secure and consistent, there are some breaking changes. Please check out 6.x API documentation for detailed changes so you can start using the new TypeScript version of TronWeb early. Any questions or feedback are welcome here.

Project scope

Any new TRON feature will be incorporated into TronWeb. Changes to the API to improve quality-of-life are in-scope for the project. We will not necessarily maintain feature parity with Web3.js going forward as this is a separate project, not a synchronized fork.

HomePage

__tronweb.network__

Compatibility


- Version built for Node.js v14 and above
- Version built for browsers with more than 0.25% market share

You can access either version specifically from the dist folder.

TronWeb is also compatible with frontend frameworks such as:
- Angular
- React
- Vue.

You can also ship TronWeb in a Chrome extension.

Recent History

For recent history, see the CHANGELOG. You can check it out for:
- New features
- Dependencies update
- Bug fix

Installation

$3


``bash
npm install tronweb
`
or
`bash
yarn add tronweb
`

$3

The easiest way to use TronWeb in a browser is to install it as above and copy the dist file to your working folder. For example:
`
cp node_modules/tronweb/dist/TronWeb.js ./js/tronweb.js
`
so that you can call it in your HTML page as
`
tronweb - npm explorer

Dist Tags

beta6.0.0-beta.4
latest6.2.0