Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
The transaction object should contain:raw_data— the raw transaction data object containing:contract— array of contract objects with transaction detailsref_block_bytes— reference block bytesref_block_hash— reference block hashexpiration— transaction expiration time in millisecondstimestamp— transaction creation timestamp
raw_data_hex— hexadecimal representation of the raw transaction datasignature— array of transaction signatures (required for signed transactions)visible— optional boolean for address format
Response
result— boolean indicating broadcast successcode— error code if broadcast failedmessage— hexadecimal error message if broadcast failedtxid— transaction ID if broadcast succeeded
Use case
Thewallet/broadcasttransaction method is used for:
- Submitting signed transactions to the TRON network for processing.
- Broadcasting transfers, smart contract interactions, and other operations.
- Finalizing transactions after they have been created and signed offline.
- Implementing transaction submission in wallets and DApps.
curl example
Use a fully signed transaction object. The example below is syntactically valid and will return a JSON result from the node. If the signature does not match theraw_data, the node responds with SIGERROR. Replace the signature value with a real signature produced from the exact raw_data to get result: true.
Shell
to get a successful
result: true, create the transaction with wallet/createtransaction, sign the exact raw_data with your private key, then broadcast the signed transaction here. Keep your private key secure and never paste it in client-side code.Body
application/json
raw_data_hex
string
default:0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e
required
Array of hex-encoded signatures (65-byte secp256k1).