## Overview
In this article, we will illustrate how to build and use a Tron node supporting Rosetta blockchain specifications. We hope this set of specifications will make our TRON API architecture more standard and flexible
## Before Deployment
Please make sure you have installed the latest version of docker before deployment Execute the following command to download tron-rosetta-api:
Compile docker image and use MainNet configuration for the image by default:
## Node Deployment
Start in Docker
You can also ignore the `${realpath data}
` configure if you want to store the chain data in the container.
## Test
When first run, We prefer to use the private net, because it is more controllable.
As people may want to own an account that has an amount of TRX, the private net has already define these accounts, and the private keys are settled in the `resources/net_conf/privatenet.conf
`.
By the way, when running `check:construction
`, [wallet-cli](🔗) can help to transfer TRX.
Firstly import the private key using `importWallet
` command. this private key `
cba92a516ea09f620a16ff7ee95ce0df1d56550a8babe9964981a7144c8a784a
` is in the genesis block on the private net(account: Sun), after `importWallet
`, you should use `login
` command to active the wallet, then you can use the `sendCoin
` command to transfer the TRX from this account to the account which auto-generated by `check:construction
`.
If you start tron-roseta-server connecting to the mainnet, you should modify the `config.conf
` for wallet-cli in `src/main/resources
` to make sure the wallet-cli connects to the right network. More details can be found in the wallet-cli github repo.
We also provide the conf files for rosetta-cli, these conf files located in the `rosetta-cli-conf
` directory. Now we provide three types: `mainnet
` | `testnet
` | `private
`, you can find them in the corresponding directory.
## API Reference
Based on Rosetta blockchain specifications, we have implemented the following interfaces: