Tx
Since: cosmos-sdk 0.47
TxDecodeRequest is the request type for the Service.TxDecode RPC method.
Since: cosmos-sdk 0.47
tx_bytes is the raw transaction.
POST /cosmos/tx/v1beta1/decode HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"tx_bytes": "Ynl0ZXM="
}
{
"tx": {
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": "[Circular Reference]"
},
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
},
"tip": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"tipper": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
}
}
Since: cosmos-sdk 0.47
TxEncodeRequest is the request type for the Service.TxEncode RPC method.
Since: cosmos-sdk 0.47
POST /cosmos/tx/v1beta1/encode HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Content-Type: application/json
Accept: */*
Content-Length: 629
{
"tx": {
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": "[Circular Reference]"
},
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
},
"tip": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"tipper": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
}
}
{
"tx_bytes": "Ynl0ZXM="
}
Since: cosmos-sdk 0.47
TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino RPC method.
Since: cosmos-sdk 0.47
POST /cosmos/tx/v1beta1/decode/amino HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"amino_binary": "Ynl0ZXM="
}
{
"amino_json": "text"
}
Since: cosmos-sdk 0.47
TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method.
Since: cosmos-sdk 0.47
POST /cosmos/tx/v1beta1/encode/amino HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"amino_json": "text"
}
{
"amino_binary": "Ynl0ZXM="
}
events is the list of transaction event type. Deprecated post v0.47.x: use query instead, which should contain a valid events query.
key 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.
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.
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.
count_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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
- 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
page is the page number to query, starts at 1. If not provided, will default to first page.
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.
query defines the transaction event query that is proxied to Tendermint's TxSearch RPC method. The query must be valid.
Since cosmos-sdk 0.50
GET /cosmos/tx/v1beta1/txs HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"txs": [
{
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": "[Circular Reference]",
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
},
"tip": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"tipper": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
}
],
"tx_responses": [
{
"height": "text",
"txhash": "text",
"codespace": "text",
"code": 1,
"data": "text",
"raw_log": "text",
"logs": [
{
"msg_index": 1,
"log": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text"
}
]
}
]
}
],
"info": "text",
"gas_wanted": "text",
"gas_used": "text",
"tx": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"timestamp": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text",
"index": true
}
]
}
]
}
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
},
"total": "text"
}
hash is the tx hash to query, encoded as a hex string.
GET /cosmos/tx/v1beta1/txs/{hash} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"tx": {
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": "[Circular Reference]"
},
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
},
"tip": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"tipper": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
},
"tx_response": {
"height": "text",
"txhash": "text",
"codespace": "text",
"code": 1,
"data": "text",
"raw_log": "text",
"logs": [
{
"msg_index": 1,
"log": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text"
}
]
}
]
}
],
"info": "text",
"gas_wanted": "text",
"gas_used": "text",
"tx": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"timestamp": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text",
"index": true
}
]
}
]
}
}
BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.
tx_bytes is the raw transaction.
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.
BROADCAST_MODE_UNSPECIFIED
Possible values: POST /cosmos/tx/v1beta1/txs HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"tx_bytes": "Ynl0ZXM=",
"mode": "BROADCAST_MODE_UNSPECIFIED"
}
{
"tx_response": {
"height": "text",
"txhash": "text",
"codespace": "text",
"code": 1,
"data": "text",
"raw_log": "text",
"logs": [
{
"msg_index": 1,
"log": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text"
}
]
}
]
}
],
"info": "text",
"gas_wanted": "text",
"gas_used": "text",
"tx": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"timestamp": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text",
"index": true
}
]
}
]
}
}
Since: cosmos-sdk 0.45.2
height is the height of the block to query.
key 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.
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.
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.
count_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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
GET /cosmos/tx/v1beta1/txs/block/{height} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"txs": [
{
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": "[Circular Reference]",
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
},
"tip": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"tipper": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
}
],
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"block": {
"header": {
"version": {
"block": "text",
"app": "text"
},
"chain_id": "text",
"height": "text",
"time": "2025-06-27T08:46:54.984Z",
"last_block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"last_commit_hash": "Ynl0ZXM=",
"data_hash": "Ynl0ZXM=",
"validators_hash": "Ynl0ZXM=",
"next_validators_hash": "Ynl0ZXM=",
"consensus_hash": "Ynl0ZXM=",
"app_hash": "Ynl0ZXM=",
"last_results_hash": "Ynl0ZXM=",
"evidence_hash": "Ynl0ZXM=",
"proposer_address": "Ynl0ZXM="
},
"data": {
"txs": [
"Ynl0ZXM="
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "text",
"round": 1,
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"timestamp": "2025-06-27T08:46:54.984Z",
"validator_address": "Ynl0ZXM=",
"validator_index": 1,
"signature": "Ynl0ZXM=",
"extension": "Ynl0ZXM=",
"extension_signature": "Ynl0ZXM="
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "text",
"round": 1,
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"timestamp": "2025-06-27T08:46:54.984Z",
"validator_address": "Ynl0ZXM=",
"validator_index": 1,
"signature": "Ynl0ZXM=",
"extension": "Ynl0ZXM=",
"extension_signature": "Ynl0ZXM="
},
"total_voting_power": "text",
"validator_power": "text",
"timestamp": "2025-06-27T08:46:54.984Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "text",
"app": "text"
},
"chain_id": "text",
"height": "text",
"time": "2025-06-27T08:46:54.984Z",
"last_block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"last_commit_hash": "Ynl0ZXM=",
"data_hash": "Ynl0ZXM=",
"validators_hash": "Ynl0ZXM=",
"next_validators_hash": "Ynl0ZXM=",
"consensus_hash": "Ynl0ZXM=",
"app_hash": "Ynl0ZXM=",
"last_results_hash": "Ynl0ZXM=",
"evidence_hash": "Ynl0ZXM=",
"proposer_address": "Ynl0ZXM="
},
"commit": {
"height": "text",
"round": 1,
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "Ynl0ZXM=",
"timestamp": "2025-06-27T08:46:54.984Z",
"signature": "Ynl0ZXM="
}
]
}
},
"validator_set": {
"validators": [
{
"address": "Ynl0ZXM=",
"pub_key": {
"ed25519": "Ynl0ZXM=",
"secp256k1": "Ynl0ZXM="
},
"voting_power": "text",
"proposer_priority": "text"
}
],
"proposer": {
"address": "Ynl0ZXM=",
"pub_key": {
"ed25519": "Ynl0ZXM=",
"secp256k1": "Ynl0ZXM="
},
"voting_power": "text",
"proposer_priority": "text"
},
"total_voting_power": "text"
}
},
"common_height": "text",
"byzantine_validators": [
{
"address": "Ynl0ZXM=",
"pub_key": {
"ed25519": "Ynl0ZXM=",
"secp256k1": "Ynl0ZXM="
},
"voting_power": "text",
"proposer_priority": "text"
}
],
"total_voting_power": "text",
"timestamp": "2025-06-27T08:46:54.984Z"
}
}
]
},
"last_commit": {
"height": "text",
"round": 1,
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"total": 1,
"hash": "Ynl0ZXM="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "Ynl0ZXM=",
"timestamp": "2025-06-27T08:46:54.984Z",
"signature": "Ynl0ZXM="
}
]
}
},
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
SimulateRequest is the request type for the Service.Simulate RPC method.
tx_bytes is the raw transaction.
Since: cosmos-sdk 0.43
POST /cosmos/tx/v1beta1/simulate HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Content-Type: application/json
Accept: */*
Content-Length: 651
{
"tx": {
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": "[Circular Reference]"
},
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
},
"tip": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"tipper": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
},
"tx_bytes": "Ynl0ZXM="
}
{
"gas_info": {
"gas_wanted": "text",
"gas_used": "text"
},
"result": {
"data": "Ynl0ZXM=",
"log": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "text",
"value": "text",
"index": true
}
]
}
],
"msg_responses": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
}
}
Last updated
Was this helpful?