Skip to main content

Accessing Tron RPC

Registration

Register using TransatronBot and get your RPC URL. Don't forget to top-up your account.

Transatron RPC endpoint has a followind format https : // api.node.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.node.transatron.io

Example of usage with TronWeb:

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

Transatron Tron RPC Notifications

By default, Transatron Tron RPC will send notifications into telegram after every single transaction.

Use TransatronBot => Tron RPC => Settings => Disable Notifications to disable it

Bypass transactions via RPC when out of money

When using Transatron Tron RPC, transaction fees are charged from Internal Transatron Account. By default, Transatron RPC will bounce back transactions when balance is low.

Use TransatronBot => Tron RPC => Settings => Enable Bypass to make Transatron Tron RPC bypass transactions in this case. This will result in transaction burning TRX from sender account.