Tx
TxDecodeAmino
/cosmos/tx/v1beta1/decode/aminoTxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
TxEncodeAmino
/cosmos/tx/v1beta1/encode/aminoTxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
Simulate
/cosmos/tx/v1beta1/simulateSimulate simulates executing a transaction for estimating gas usage.
Query Parameters
string[]events is the list of transaction event type. Deprecated post v0.47.x: use query instead, which should contain a valid events query.
stringkey is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
string <uint64>offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
string <uint64>limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
booleancount_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
booleanreverse is set to true if results are to be returned in the descending order.
string- ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
- ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
- ORDER_BY_DESC: ORDER_BY_DESC defines descending order
ORDER_BY_UNSPECIFIEDORDER_BY_ASCORDER_BY_DESCstring <uint64>page is the page number to query, starts at 1. If not provided, will default to first page.
string <uint64>limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
Responses
Request Body
application/jsonstring·default BROADCAST_MODE_UNSPECIFIEDBroadcastMode 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.
BROADCAST_MODE_UNSPECIFIEDBROADCAST_MODE_BLOCKBROADCAST_MODE_SYNCBROADCAST_MODE_ASYNCResponses
GetBlockWithTxs
/cosmos/tx/v1beta1/txs/block/{height}GetBlockWithTxs fetches a block with decoded txs.
Path Parameters
Query Parameters
stringkey is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
string <uint64>offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
string <uint64>limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
booleancount_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.