Skip to main content

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.

  1. Prepare a TRX transfer transaction.
  2. Sign the transaction.
  3. POST /wallet/broadcasttransaction with the signed payload.

Smart Contract Transactions (incl. TRC-20)

  1. Prepare
    Call POST /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.
  2. Estimate energy → fee limit
    Call POST /wallet/triggerconstantcontract with the prepared transaction to obtain energy_used.
    Get energy_fee from GET /wallet/getchainparameters, then compute: fee_limit = energy_used * energy_fee Set fee_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).

  1. Sign
    Sign the prepared transaction with the wallet private key and inject the signature.

  2. Broadcast
    POST /wallet/broadcasttransaction with the prepared & signed transaction.

  • With Transatron, the response includes a transatron object.

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

  1. API compatibility: Transatron is a proxy Tron node; API matches the Tron Node API with the extensions noted above.
  2. Access: You need an API key — register in Transatron Edge Dashboard and create an API key.
  3. Protocol: Transatron currently supports JSON-RPC and GRPC
  4. 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