TRON API — eth_sendRawTransaction is not supported on TRON’s JSON-RPC endpoint. Use the native /wallet/broadcasttransaction endpoint instead.
Method not supported
The eth_sendRawTransaction method is not available on TRON’s /jsonrpc endpoint. TRON’s JSON-RPC implementation provides limited Ethereum compatibility for read operations only.To broadcast transactions on TRON, use the native broadcasttransaction method via the /wallet endpoint.
Why this method is not supported
TRON’s JSON-RPC endpoint does not support transaction submission methods because:
TRON uses a different transaction format (Protobuf) than Ethereum (RLP-encoded)
TRON addresses use Base58 encoding natively, not hex
Transaction nonces work differently on TRON
Alternative: Use TronWeb.js
To send transactions on TRON, use TronWeb.js with your Chainstack node:
const { TronWeb } = require('tronweb');const tronWeb = new TronWeb({ fullHost: 'YOUR_CHAINSTACK_ENDPOINT', privateKey: 'YOUR_PRIVATE_KEY'});async function sendTRX() { const transaction = await tronWeb.transactionBuilder.sendTrx( 'RECIPIENT_ADDRESS', 1000000, // Amount in SUN (1 TRX = 1,000,000 SUN) tronWeb.defaultAddress.base58 ); const signedTx = await tronWeb.trx.sign(transaction); const result = await tronWeb.trx.sendRawTransaction(signedTx); console.log('Transaction ID:', result.txid);}sendTRX();
where YOUR_CHAINSTACK_ENDPOINT is your TRON node base endpoint without the /jsonrpc, /wallet, or /walletsolidity postfixes.See also: