Environments & Networks
TronSave's two API environments — Mainnet and the Nile testnet — and how to switch between them.
Mainnet vs. Nile testnet
Mainnet (Production)
Nile (Testnet)
Switching environments
// 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
Shasta is not supported
Next steps
Last updated