Sending Transactions in Tron
Creating and broadcasting transactions via Transatron works just like standard Tron flows. The only addition is telling Transatron how to cover fees.
Examples of all flows: Transatron TronWeb Examples.
Transfer TRX Transactions
No special prep is required. Create with your client (tronweb or tronpy) and broadcast.
- Prepare a TRX transfer transaction.
- Sign the transaction.
POST /wallet/broadcasttransactionwith the signed payload.- When using Transatron, the response includes a
transatronJSON object with extra info. See: Transatron Extension Objects.
- When using Transatron, the response includes a
Smart Contract Transactions (incl. TRC-20)
-
Prepare
CallPOST /wallet/triggersmartcontractwith:- owner (originator) address
- contract address
- function selector + params
→ You get a prepared transaction. - With Transatron, you’ll also get a
transatronobject in the response.
-
Estimate energy → fee limit
CallPOST /wallet/triggerconstantcontractwith the prepared transaction to obtainenergy_used.
Getenergy_feefromGET /wallet/getchainparameters, then compute:fee_limit = energy_used * energy_feeSetfee_limitin the prepared transaction.
Example: if energy_used = 30,000 and energy_fee = 420 sun/energy, fee_limit = 12,600,000 sun (12.6 TRX).
-
Sign
Sign the prepared transaction with the wallet private key and inject the signature. -
Broadcast
POST /wallet/broadcasttransactionwith the prepared & signed transaction.
- With Transatron, the response includes a
transatronobject.
Multisig Transactions
No special preparation is required for multisig transactions. Build and sign the transaction with the required keys — signature weights meeting the owner permission threshold (in practice two or more signatures) — and broadcast it exactly as you would a single-signature transaction.
Tron charges an extra MultiSignFee for multi-signature transactions. Transatron covers this fee for the supported transaction types (TransferContract, TriggerSmartContract, CreateSmartContract), so your own TRX balance is left untouched. The covered fee is reflected in the transatron response object — see Transatron Extension Objects and the multisig FAQ entry.
Important Notes
- API compatibility: Transatron is a proxy Tron node; API matches the Tron Node API with the extensions noted above.
- Access: You need an API key — register in Transatron Edge Dashboard and create an API key.
- Protocol: Transatron currently supports JSON-RPC and GRPC
- TFN/TFU: You can read TFN/TFU balances via the Transatron node. Transfers of these tokens are not yet supported.
Example Scripts
See sending transactions examples here:
👉 examples_tronweb/src/sendingTransactions.js
See the multisig transaction example here:
👉 examples_tronweb/src/examples/sending_tx/send-trx-multisig.ts