broadcasthex - Tron

broadcasthex. Broadcasts a signed transaction supplied as a raw hex string to the Tron network.

broadcasthex - tron [Value: 20CU]
Broadcasts a signed transaction supplied as a raw hex string to the Tron network.
Use cases

Use cases

  • Broadcast a transaction that was fully constructed and signed offline as a single hex blob
  • Retry a broadcast safely by checking for DUP_TRANSACTION_ERROR
Constraints

Constraints

  • The hex string must be the complete signed transaction, not just raw_data
  • Transactions expire (default ~60 seconds) and must be broadcast before expiration
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://lb.drpc.live/tron/{API-KEY}/wallet/broadcasthex \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{"transaction": "example"}'
Copy
Response
200
{
  "result": true,
  "txid": "f3c9aa2b4d122979f92a658be1804560f949a89c8b5d30e15b2d003712d72c92"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
object
transactionstring
[Required] The fully signed transaction, protobuf-serialized and hex-encoded

Response

200
Broadcasts a signed transaction supplied as a raw hex string to the Tron network.

Response params

object
resultboolean
Whether the node accepted the transaction
txidstring
The transaction hash
codestring
Present only on failure, e.g. SIGERROR or DUP_TRANSACTION_ERROR
messagestring
Present only on failure, a hex-encoded explanation of the error