BroadcastHex
POST
Broadcasts a signed, protocol buffer-encoded transaction hex string to the network.
Path Parameters
chainstringrequired
Parameter specifying the target chain to query.networkstringrequired
Parameter specifying the network of the target chain.Request Body
transactionstringrequired
Transaction object. See here for details. (Format: Hex).e.g., 0A8A010A0202DB2208C89D4811359A28004098A4E0A6B52D5A730802126F0A32747970652E676F6F676C65617069732E636F6D2F70726F746F636F6C2E5472616E736665724173736574436F6E747261637412390A07313030303030311215415A523B449890854C8FC460AB602DF9F31FE4293F1A15416B0580DA195542DDABE288FEC436C7D5AF769D24206412418BF3F2E492ED443607910EA9EF0A7EF79728DAAAAC0EE2BA6CB87DA38366DF9AC4ADE54B2912C1DEB0EE6666B86A07A6C7DF68F1F9DA171EEE6A370B3CA9CBBB00Responses
`result`boolean
Whether the broadcast was successful. true - successful; false - failed. (Field omitted in result).`txid`string
The transaction hash.`code`string
Error code indicating the result.`message`string
Detailed error information.`transaction`object
The transaction object. Refer to the Transaction chapter for details.codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "ERROR_CODE","message": "400"}
cURL
curl -X POST 'https://tron-mainnet.nodit.io/wallet/broadcasthex' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{}'