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. At the same time, TronWeb can service for Tron Network and Sun Network. Developers can use methods in tronWeb.sidechain to contact between the main chain and the side chain.

# Installation

### Node.js


### Browser

First, don't use the release section of this repo, it has not updated in a long time.

Then 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:

so that you can call it in your HTML page as

# Create TronWeb Instance

In order to use tronWeb in your application, you need to create a tronWeb instance like the following.

##### Create a tronWeb instance without sidechain options

##### Create a tronWeb instance with sidechain options

If you want to use shasta testnet, you can create an TronWeb instance as follows:

And if you prefer to use our tronex testnet with a sidechain, you can create an TronWeb instance as follows:

# APIs

TronWeb API please refer to: [API](🔗)