Skip to main content
POST
BroadcastTx

Body

application/json

BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.

BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.

tx_bytes
string<byte>

tx_bytes is the raw transaction.

mode
enum<string>
default:BROADCAST_MODE_UNSPECIFIED

BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.

  • BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
  • BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
  • BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for a CheckTx execution response only.
  • BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns immediately.
Available options:
BROADCAST_MODE_UNSPECIFIED,
BROADCAST_MODE_BLOCK,
BROADCAST_MODE_SYNC,
BROADCAST_MODE_ASYNC

Response

A successful response.

BroadcastTxResponse is the response type for the Service.BroadcastTx method.

tx_response
object | null

tx_response is the queried TxResponses.