Environments & Networks

TronSave's two API environments — Mainnet and the Nile testnet — and how to switch between them.

TronSave runs on two networks: Mainnet for real orders, and the Nile testnet for development and testing. The API surface is identical across both — only the base domain changes.

Mainnet vs. Nile testnet

Mainnet (Production)
Nile (Testnet)

Website

https://tronsave.io

https://testnet.tronsave.io

API base

https://api.tronsave.io

https://api-dev.tronsave.io

TRON network

Mainnet

Nile testnet

TRX

Real TRX

Test TRX (no real value)

All endpoint paths are identical across environments. To target the testnet, swap only the base domain — for example https://api.tronsave.io/v2/user-info becomes https://api-dev.tronsave.io/v2/user-info.

Switching environments

Keep the base URL in a single variable so you can move between environments by changing one value.

// Mainnet
const TRONSAVE_API = "https://api.tronsave.io";

// Nile testnet
// const TRONSAVE_API = "https://api-dev.tronsave.io";

const res = await fetch(`${TRONSAVE_API}/v2/user-info`, {
  headers: { apikey: "YOUR_API_KEY" },
});

Testing on Nile

The Nile testnet behaves exactly like Mainnet but uses test TRX, so you can run the full estimate → buy → check-status flow without spending real funds.

  1. Go to testnet.tronsave.io and connect a wallet configured for the Nile network.

  2. Get an API key and deposit address the same way you would on Mainnet — see Quickstart.

  3. Fund your account with test TRX from the Nile faucet.

Shasta is not supported

TronSave does not support the Shasta testnet. Use the Nile testnet for all testing.

Next steps

Last updated