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/broadcasttransaction
with the signed payload.- When using Transatron, the response includes a
transatron
JSON object with extra info. See: Transatron Extension Objects.
- When using Transatron, the response includes a
Smart Contract Transactions (incl. TRC-20)
-
Prepare
CallPOST /wallet/triggersmartcontract
with:- owner (originator) address
- contract address
- function selector + params
→ You get a prepared transaction. - With Transatron, you’ll also get a
transatron
object in the response.
-
Estimate energy → fee limit
CallPOST /wallet/triggerconstantcontract
with the prepared transaction to obtainenergy_used
.
Getenergy_fee
fromGET /wallet/getchainparameters
, then compute:fee_limit = energy_used * energy_fee
Setfee_limit
in 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/broadcasttransaction
with the prepared & signed transaction.
- With Transatron, the response includes a
transatron
object.
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 — contact info@transatron.io or Telegram Support.
- Protocol: Transatron currently supports JSON-RPC only (gRPC not supported).
- 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