Skip to main content

Nile Testnet

Nile is TRON's public testnet. Use it to integrate and test Transfer Edge end-to-end before going to mainnet — no real funds are at risk, since testnet TRX and tokens have no real value.

To get started, register and get a testnet API key at the Nile dashboard: Transfer Edge Nile Dashboard.

Endpoints

Nile mirrors the mainnet setup one-to-one — swap the host, keep everything else the same.

SurfaceMainnetNile
JSON-RPC / RESThttps://api.transatron.iohttps://napi.transatron.io
gRPChttps://grpc.transatron.iohttps://napi-grpc.transatron.io
Dashboardhttps://te.transatron.iohttps://nte.transatron.io
info

Authentication is identical to mainnet — the TRANSATRON-API-KEY header for JSON-RPC/REST, TRON-PRO-API-KEY for gRPC. Keys are per-user and issued from the Nile Dashboard; mainnet keys will not work against Nile endpoints.

Using the JSON-RPC endpoint with TronWeb

RPC endpoint: https://napi.transatron.io

Just like on mainnet, the endpoint can also be used in the https://napi.transatron.io/<YOUR_API_KEY> form, or you can extract the API key and pass it in a header with TronWeb:

const API = 'https://napi.transatron.io';
const fullNode = API;
const solidityNode = API;
const eventServer = API;
const TRANSATRON_API_KEY = '<YOUR_API_KEY_HERE>';
const privateKey = '<YOUR_PRIVATE_KEY>';

const tronWeb = new TronWeb({
fullHost: fullNode,
eventServer: fullNode,
privateKey: privateKey,
headers: {
'TRANSATRON-API-KEY': TRANSATRON_API_KEY,
},
});

gRPC

Nile gRPC endpoint is https://napi-grpc.transatron.io/. Default port is 443.

info

Transatron doesn't provide a non-SSL encrypted endpoint for gRPC on Nile either. It will not work in mobile TronLink.

The API key is provided in a header named TRON-PRO-API-KEY, same as mainnet.

Unfortunately Trident doesn't support SSL enabled gRPC endpoints as of today (release 0.11.0 and earlier). It's still possible to use Transatron gRPC with a minimum modification of the ApiWrapper class — see this Trident SSL-enabled fork for details.

Get test TRX

Fund your Nile address from the public faucets:

  1. Web faucet on Nile Official page https://nileex.io
  2. Official Tron Dev Telegram group: @TronOfficialDevelopersGroupEn
  3. Discord channel: TRON Developers & SRs

For account setup on Transatron itself — deposit addresses and TRX/USDT top-ups — register via the Nile Dashboard.

You can inspect Nile transactions on the Nile explorer: https://nile.tronscan.org.

Feel free to contact our support team for assistance at info@transatron.io.