PreciosGitHubPanel

TRON

protocol.Wallet/BroadcastTransaction25 créditos

Broadcasts a signed transaction (gRPC).

Red: tron

Parámetros

NombreTipoDescripción
raw_dataObjectTransaction.raw: ref_block_bytes, ref_block_num, ref_block_hash, expiration, contract[], timestamp, fee_limit, ...
signaturestring[]Signatures (bytes; base64 in the JSON form of the message).

Valor devuelto

Tipo

Object

Return message: result (true when accepted into the pending pool), code (SUCCESS, SIGERROR, CONTRACT_VALIDATE_ERROR, CONTRACT_EXE_ERROR, BANDWITH_ERROR, DUP_TRANSACTION_ERROR, TAPOS_ERROR, TOO_BIG_TRANSACTION_ERROR, TRANSACTION_EXPIRATION_ERROR, SERVER_BUSY, ...) and message (bytes with error details).

Ejemplos de código

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "raw_data": {},
  "signature": [
    "<base64 signature>"
  ]
}' \
  grpc-holy-burned-sky-tron-mainnet.rpcnode.dev:443 \
  protocol.Wallet/BroadcastTransaction