Skip to main content

Accessing Tron JSON-RPC

tip

Want to test on testnet first? See the Nile Testnet guide for the equivalent endpoints.

Registration

Register via Transfer Edge Dashboard and get your RPC URL and API Key. Don't forget to top-up your account.

Transatron RPC endpoint has a following format https : // api.transatron.io / <YOUR_API_KEY>

You can use RPC point as is or extract API Key and provide it in a header with TronWeb

Using Transatron Tron RPC with TronWeb

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

Example of usage with TronWeb:

const API = 'https://api.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,
},
});
tip

Alternatively, it's OK to use TronPro http header with Transatron API key: 'TRON-PRO-API-KEY': TRANSATRON_API_KEY

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