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
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)
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" },
});# Mainnet
curl https://api.tronsave.io/v2/user-info -H "apikey: YOUR_API_KEY"
# Nile testnet
curl https://api-dev.tronsave.io/v2/user-info -H "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.
Go to testnet.tronsave.io and connect a wallet configured for the Nile network.
Get an API key and deposit address the same way you would on Mainnet — see Quickstart.
Fund your account with test TRX from the Nile faucet.
API keys, internal account balances, and orders are separate between Mainnet and Nile. An API key issued on one environment does not work on the other.
Shasta is not supported
TronSave does not support the Shasta testnet. Use the Nile testnet for all testing.
Next steps
Last updated