Submit Signed Transaction Hex

This endpoint is used to broadcast a signed singular transaction hex.

Transactions submitted to this endpoint must include a bloXroute tip payment in order to be processed.

Request

Method:

POST ./wallet/broadcasthex

Parameters:

ParametertypeDescription

transaction

string

Transaction hex after sign: Hex representation of protobuf marshaled raw_data_hex & signature

Request example:

curl -X 'POST' \
  'https://' \
  -header "Authorization: $AUTH_HEADER" \
  -d '{
  "transaction": "0A8A010A0202D..."
}'

Response:

Fields:

ParameterTypeDescription

result

bool

Whether the broadcast was successful.

True - Successful

False - Failed, and this field will not be displayed in the returned result

txid

string

The submitted Transaction id.

code

string

General error code info

message

string

Detailed information about the error

transaction

json

Transaction object in raw json format

Error

string

Tron error description. Optional

Example:

{
    "result": true,
    "code": "SUCCESS",
    "txid": "9f4023d47...",
    "message": "",
    "transaction": "{\"raw_data\": {\"ref_block_bytes\": \"29...\",\"ref_block_hash\": \"a75513...\",\"expiration\": 1727...,\"contract\": [{\"type\": \"TransferContract\",\"parameter\": {\"type_url\": \"type.googleapis.com/protocol.TransferContract\",\"value\": \"...\"}}],\"timestamp\": 17276...},\"signature\": [\"...\"]}"
}

Last updated