TarifsGitHubTableau de bord

TRON

wallet/broadcasthex25 crédits

Broadcasts a signed transaction given as hex.

Réseau: tron

Paramètres

NomTypeDescription
transactionstringSigned, protobuf-encoded transaction as a hex string.

Valeur renvoyée

Type

Object

Object with result (true when the node accepted the call; it does not confirm inclusion in a block), txid, code and message (error code such as CONTRACT_VALIDATE_ERROR and details) and transaction (decoded transaction as a JSON string). On failure an Error string.

Exemples de code

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/broadcasthex' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "transaction": "<signed transaction hex>"
}'