ТарифыGitHubКабинет

TRON

wallet/broadcasthexКредиты: 25

Broadcasts a signed transaction given as hex.

Сеть: tron

Параметры

ИмяТипОписание
transactionstringSigned, protobuf-encoded transaction as a hex string.

Результат

Тип

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.

Примеры кода

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>"
}'