/wallet/broadcasthex REST API Endpoint
Body Parameters
transaction
string
REQUIRED
The transaction encoded in hexadecimal format after sign
Returns
result
It tells whether the broadcast was successful. It is true for successful broadcast and false for failed broadcast
code
A string indicating the status of the transaction. Possible values include SUCCESS for a successful transaction, and various error codes for failed transactions. In this case, the value of code is SIGERROR, which indicates that the transaction failed because of a signature error
txid
The transaction id
message
The additional information about the error, if any
transaction
The transaction object with the following fields:
raw_data
An object that contains the transaction details with the following fields:
contract
An array of contracts to be executed as part of the transaction
ref_block_bytes
The ref block bytes of the transaction
ref_block_hash
The ref block hash of the transaction
expiration
This is a timestamp indicating the expiration time of the transaction in milliseconds
data
The data included in the transaction
timestamp
This is a timestamp indicating the time at which the transaction was created in milliseconds
fee_limit
The maximum amount of energy that can be consumed by the transaction
signature
The signature(s) of the transaction
Request
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/broadcasthex \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"transaction": "0A8A010A0202DB2208C89D4811359A28004098A4E0A6B52D5A730802126F0A32747970652E676F6F676C65617069732E636F6D2F70726F746F636F6C2E5472616E736665724173736574436F6E747261637412390A07313030303030311215415A523B449890854C8FC460AB602DF9F31FE4293F1A15416B0580DA195542DDABE288FEC436C7D5AF769D24206412418BF3F2E492ED443607910EA9EF0A7EF79728DAAAAC0EE2BA6CB87DA38366DF9AC4ADE54B2912C1DEB0EE6666B86A07A6C7DF68F1F9DA171EEE6A370B3CA9CBBB00"7}8'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free