Swagger API
Cosmos SDK - Legacy REST and gRPC Gateway docs (1.0.0)
Download OpenAPI specification:Download
A REST interface for state queries, legacy transactions
Response samples
- 200
{- "application_version": {
- "build_tags": "string",
- "client_name": "string",
- "commit": "string",
- "go": "string",
- "name": "string",
- "server_name": "string",
- "version": "string"
}, - "node_info": {
- "id": "string",
- "moniker": "validator-name",
- "protocol_version": {
- "p2p": 7,
- "block": 10,
- "app": 0
}, - "network": "gaia-2",
- "channels": "string",
- "listen_addr": "192.168.56.1:26656",
- "version": "0.15.0",
- "other": {
- "tx_index": "on",
- "rpc_address": "tcp://0.0.0.0:26657"
}
}
}Response samples
- 200
{- "block_meta": {
- "header": {
- "chain_id": "columbus-5",
- "height": 1,
- "time": "2017-12-30T05:53:09.287+01:00",
- "num_txs": 0,
- "last_block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "total_txs": 35,
- "last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "proposer_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "version": {
- "block": 10,
- "app": 0
}
}, - "block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}
}, - "block": {
- "header": {
- "chain_id": "columbus-5",
- "height": 1,
- "time": "2017-12-30T05:53:09.287+01:00",
- "num_txs": 0,
- "last_block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "total_txs": 35,
- "last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "proposer_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "version": {
- "block": 10,
- "app": 0
}
}, - "txs": [
- "string"
], - "evidence": [
- "string"
], - "last_commit": {
- "block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "precommits": [
- {
- "validator_address": "string",
- "validator_index": "0",
- "height": "0",
- "round": "0",
- "timestamp": "2017-12-30T05:53:09.287+01:00",
- "type": 2,
- "block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "signature": "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ=="
}
]
}
}
}Get a block at a certain height
path Parameters
| height required | number Example: 1 Block height |
Responses
Response samples
- 200
{- "block_meta": {
- "header": {
- "chain_id": "columbus-5",
- "height": 1,
- "time": "2017-12-30T05:53:09.287+01:00",
- "num_txs": 0,
- "last_block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "total_txs": 35,
- "last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "proposer_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "version": {
- "block": 10,
- "app": 0
}
}, - "block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}
}, - "block": {
- "header": {
- "chain_id": "columbus-5",
- "height": 1,
- "time": "2017-12-30T05:53:09.287+01:00",
- "num_txs": 0,
- "last_block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "total_txs": 35,
- "last_commit_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "data_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "next_validators_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "consensus_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "app_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "last_results_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "evidence_hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "proposer_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "version": {
- "block": 10,
- "app": 0
}
}, - "txs": [
- "string"
], - "evidence": [
- "string"
], - "last_commit": {
- "block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "precommits": [
- {
- "validator_address": "string",
- "validator_index": "0",
- "height": "0",
- "round": "0",
- "timestamp": "2017-12-30T05:53:09.287+01:00",
- "type": 2,
- "block_id": {
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "parts": {
- "total": 0,
- "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}
}, - "signature": "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ=="
}
]
}
}
}Get a validator set a certain height
path Parameters
| height required | number Example: 1 Block height |
Responses
Response samples
- 200
{- "block_height": "string",
- "validators": [
- {
- "address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "pub_key": {
- "type": "string",
- "value": "string"
}, - "voting_power": "1000",
- "proposer_priority": "1000"
}
]
}Get a Tx by hash Deprecated
Retrieve a transaction using its hash.
path Parameters
| hash required | string Example: BCBE20E8D46758B96AE5883B792858296AC06E51435490FBDCAE25A72B3CC76B Tx hash |
Responses
Response samples
- 200
{- "hash": "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656",
- "height": 368,
- "tx": {
- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}, - "result": {
- "log": "string",
- "gas_wanted": "200000",
- "gas_used": "26354",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
}Search transactions Deprecated
Search transactions by events.
query Parameters
| message.action | string Example: message.action=send transaction events such as 'message.action=send' which results in the following endpoint: 'GET /txs?message.action=send'. note that each module documents its own events. look for xx_events.md in the corresponding cosmos-sdk/docs/spec directory |
| message.sender | string Example: message.sender=terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv transaction events with sender: 'GET /txs?message.action=send&message.sender=terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv' |
| page | integer Example: page=1 Page number |
| limit | integer Example: limit=1 Maximum number of items per page |
| tx.minheight | integer Example: tx.minheight=25 transactions on blocks with height greater or equal this value |
| tx.maxheight | integer Example: tx.maxheight=800000 transactions on blocks with height less than or equal this value |
Responses
Response samples
- 200
{- "total_count": 1,
- "count": 1,
- "page_number": 1,
- "page_total": 1,
- "limit": 30,
- "txs": [
- {
- "hash": "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656",
- "height": 368,
- "tx": {
- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}, - "result": {
- "log": "string",
- "gas_wanted": "200000",
- "gas_used": "26354",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
}
]
}Broadcast a signed tx Deprecated
Broadcast a signed tx to a full node
Request Body schema: application/json
The tx must be a signed StdTx. The supported broadcast modes include "block"(return after tx commit), "sync"(return afer CheckTx) and "async"(return right away).
object | |
| mode | string |
| sequences | Array of strings |
| fee_granter | string bech32 encoded address |
Responses
Request samples
- Payload
{- "tx": {
- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}, - "mode": "block",
- "sequences": [
- "1"
], - "fee_granter": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}Response samples
- 200
{- "check_tx": {
- "code": 0,
- "data": "data",
- "log": "log",
- "gas_used": 5000,
- "gas_wanted": 10000,
- "info": "info",
- "tags": [
- "",
- ""
]
}, - "deliver_tx": {
- "code": 5,
- "data": "data",
- "log": "log",
- "gas_used": 5000,
- "gas_wanted": 10000,
- "info": "info",
- "tags": [
- "",
- ""
]
}, - "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
- "height": 0
}Encode a legacy transaction to the Proto wire format Deprecated
Encode a legacy transaction (signed or not) from JSON to base64-encoded Proto serialized bytes
Request Body schema: application/json
The tx to encode
object | |
| sequences | Array of strings |
| fee_granter | string bech32 encoded address |
Responses
Request samples
- Payload
{- "tx": {
- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}, - "sequences": [
- "1"
], - "fee_granter": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}Response samples
- 200
{- "tx": "The base64-encoded Proto-serialized bytes for the tx"
}Decode a transaction from the Amino wire format Deprecated
Decode a transaction (signed or not) from base64-encoded Amino serialized bytes to JSON
Request Body schema: application/json
The tx to decode
| tx | string |
Responses
Request samples
- Payload
{- "tx": "SvBiXe4KPqijYZoKFFHEzJ8c2HPAfv2EFUcIhx0yPagwEhTy0vPA+GGhCEslKXa4Af0uB+mfShoMCgVzdGFrZRIDMTAwEgQQwJoM"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Send coins from one account to another Deprecated
path Parameters
| address required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Account address in bech32 format |
Request Body schema: application/json
The sender and tx information
object | |
Array of objects |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "coins": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}Response samples
- 202
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Get the account information on blockchain Deprecated
path Parameters
| address required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Account address |
Responses
Response samples
- 200
{- "type": "cosmos-sdk/Account",
- "value": {
- "account_number": "string",
- "address": "string",
- "public_key": "string",
- "sequence": "string"
}
}Get all delegations from a delegator Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Responses
Response samples
- 200
[- {
- "delegation": {
- "delegator_address": "string",
- "validator_address": "string",
- "shares": "string"
}, - "balance": {
- "denom": "uluna",
- "amount": "50"
}
}
]Submit delegation Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Request Body schema: application/json
Delegate an amount of liquid coins to a validator
object | |
| delegator_address | string bech32 encoded address |
| validator_address | string bech32 encoded address |
object |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "delegator_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "validator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "amount": {
- "denom": "uluna",
- "amount": "50"
}
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query the current delegation between a delegator and a validator Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
{- "delegation": {
- "delegator_address": "string",
- "validator_address": "string",
- "shares": "string"
}, - "balance": {
- "denom": "uluna",
- "amount": "50"
}
}Get all unbonding delegations from a delegator Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Responses
Response samples
- 200
[- {
- "delegator_address": "string",
- "validator_address": "string",
- "entries": [
- {
- "initial_balance": "string",
- "balance": "string",
- "creation_height": "string",
- "completion_time": "string"
}
]
}
]Submit an unbonding delegation Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Request Body schema: application/json
Unbond an amount of bonded shares from a validator
object | |
| delegator_address | string bech32 encoded address |
| validator_address | string bech32 encoded address |
object |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "delegator_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "validator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "amount": {
- "denom": "uluna",
- "amount": "50"
}
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query all unbonding delegations between a delegator and a validator Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
{- "delegator_address": "string",
- "validator_address": "string",
- "entries": [
- {
- "initial_balance": "string",
- "balance": "string",
- "creation_height": "string",
- "completion_time": "string"
}
]
}Get all redelegations (filter by query params) Deprecated
query Parameters
| delegator | string Bech32 AccAddress of Delegator |
| validator_from | string Bech32 ValAddress of SrcValidator |
| validator_to | string Bech32 ValAddress of DstValidator |
Responses
Response samples
- 200
[- {
- "delegator_address": "string",
- "validator_src_address": "string",
- "validator_dst_address": "string",
- "entries": [
- {
- "creation_height": 0,
- "completion_time": 0,
- "initial_balance": "string",
- "balance": "string",
- "shares_dst": "string"
}
]
}
]Submit a redelegation Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Request Body schema: application/json
The sender and tx information
object | |
| delegator_address | string bech32 encoded address |
| validator_src_address | string bech32 encoded address |
| validator_dst_address | string bech32 encoded address |
Array of objects |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "delegator_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "validator_src_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "validator_dst_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query all validators that a delegator is bonded to Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Responses
Response samples
- 200
[- {
- "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "consensus_pubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": 0,
- "tokens": "string",
- "delegator_shares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "security_contact": "string",
- "details": "string"
}, - "bond_height": "0",
- "bond_intra_tx_counter": 0,
- "unbonding_height": "0",
- "unbonding_time": "1970-01-01T00:00:00Z",
- "commission": {
- "rate": "0",
- "max_rate": "0",
- "max_change_rate": "0",
- "update_time": "1970-01-01T00:00:00Z"
}
}
]Query a validator that a delegator is bonded to Deprecated
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 ValAddress of Delegator |
Responses
Response samples
- 200
{- "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "consensus_pubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": 0,
- "tokens": "string",
- "delegator_shares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "security_contact": "string",
- "details": "string"
}, - "bond_height": "0",
- "bond_intra_tx_counter": 0,
- "unbonding_height": "0",
- "unbonding_time": "1970-01-01T00:00:00Z",
- "commission": {
- "rate": "0",
- "max_rate": "0",
- "max_change_rate": "0",
- "update_time": "1970-01-01T00:00:00Z"
}
}Get all validator candidates. By default it returns only the bonded validators. Deprecated
query Parameters
| status | string Example: status=bonded The validator bond status. Must be either 'bonded', 'unbonded', or 'unbonding'. |
| page | integer Example: page=1 The page number. |
| limit | integer Example: limit=1 The maximum number of items per page. |
Responses
Response samples
- 200
[- {
- "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "consensus_pubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": 0,
- "tokens": "string",
- "delegator_shares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "security_contact": "string",
- "details": "string"
}, - "bond_height": "0",
- "bond_intra_tx_counter": 0,
- "unbonding_height": "0",
- "unbonding_time": "1970-01-01T00:00:00Z",
- "commission": {
- "rate": "0",
- "max_rate": "0",
- "max_change_rate": "0",
- "update_time": "1970-01-01T00:00:00Z"
}
}
]Query the information from a single validator Deprecated
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
{- "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "consensus_pubkey": {
- "type": "string",
- "value": "string"
}, - "jailed": true,
- "status": 0,
- "tokens": "string",
- "delegator_shares": "string",
- "description": {
- "moniker": "string",
- "identity": "string",
- "website": "string",
- "security_contact": "string",
- "details": "string"
}, - "bond_height": "0",
- "bond_intra_tx_counter": 0,
- "unbonding_height": "0",
- "unbonding_time": "1970-01-01T00:00:00Z",
- "commission": {
- "rate": "0",
- "max_rate": "0",
- "max_change_rate": "0",
- "update_time": "1970-01-01T00:00:00Z"
}
}Get all delegations from a validator Deprecated
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
[- {
- "delegation": {
- "delegator_address": "string",
- "validator_address": "string",
- "shares": "string"
}, - "balance": {
- "denom": "uluna",
- "amount": "50"
}
}
]Get all unbonding delegations from a validator Deprecated
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
[- {
- "delegator_address": "string",
- "validator_address": "string",
- "entries": [
- {
- "initial_balance": "string",
- "balance": "string",
- "creation_height": "string",
- "completion_time": "string"
}
]
}
]Get sign info of given all validators Deprecated
Get sign info of all validators
query Parameters
| page required | integer Example: page=1 Page number |
| limit required | integer Example: limit=5 Maximum number of items per page |
Responses
Response samples
- 200
[- {
- "address": "terravalcons1qsdpq864szmfk8nh82qcg7lyle6k95w07acdqn",
- "start_height": "string",
- "index_offset": "string",
- "jailed_until": "string",
- "missed_blocks_counter": "string"
}
]Unjail a jailed validator Deprecated
Send transaction to unjail a jailed validator
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 validator address |
Request Body schema: application/json
object | |||||||||
| |||||||||
Responses
Request samples
- Payload
{- "base_req": {
- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Submit a proposal Deprecated
Send transaction to submit a proposal
Request Body schema: application/json
valid value of "proposal_type" can be "text", "parameter_change", "software_upgrade"
object | |
| title | string |
| description | string |
| proposal_type | string |
| proposer | string bech32 encoded address |
Array of objects |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "title": "string",
- "description": "string",
- "proposal_type": "text",
- "proposer": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "initial_deposit": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query proposals Deprecated
Query proposals information with parameters
query Parameters
| voter | string voter address |
| depositor | string depositor address |
| status | string proposal status, valid values can be |
Responses
Response samples
- 200
[- {
- "id": "1",
- "content": {
- "type": "gov/TextProposal",
- "value": {
- "title": "string",
- "description": "string"
}
}, - "status": 0,
- "final_tally_result": {
- "yes": "0.0000000000",
- "abstain": "0.0000000000",
- "no": "0.0000000000",
- "no_with_veto": "0.0000000000"
}, - "total_deposit": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "submit_time": "string",
- "deposit_end_time": "string",
- "voting_start_time": "string",
- "voting_end_time": "string"
}
]Generate a parameter change proposal transaction Deprecated
Generate a parameter change proposal transaction
Request Body schema: application/json
The parameter change proposal body that contains all parameter changes
object | |
| title | string |
| description | string |
| proposer | string bech32 encoded address |
Array of objects | |
Array of objects |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "title": "string",
- "description": "string",
- "proposer": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "deposit": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "changes": [
- {
- "subspace": "staking",
- "key": "MaxValidators",
- "subkey": "",
- "value": { }
}
]
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query a proposal Deprecated
Query a proposal by id
path Parameters
| proposalId required | string Example: 2 |
Responses
Response samples
- 200
{- "id": "1",
- "content": {
- "type": "gov/TextProposal",
- "value": {
- "title": "string",
- "description": "string"
}
}, - "status": 0,
- "final_tally_result": {
- "yes": "0.0000000000",
- "abstain": "0.0000000000",
- "no": "0.0000000000",
- "no_with_veto": "0.0000000000"
}, - "total_deposit": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "submit_time": "string",
- "deposit_end_time": "string",
- "voting_start_time": "string",
- "voting_end_time": "string"
}Deposit tokens to a proposal Deprecated
Send transaction to deposit tokens to a proposal
path Parameters
| proposalId required | string Example: 2 proposal id |
Request Body schema: application/json
object | |
| depositor | string bech32 encoded address |
Array of objects |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "depositor": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query deposit Deprecated
Query deposit by proposalId and depositor address
path Parameters
| proposalId required | string Example: 2 proposal id |
| depositor required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 depositor address |
Responses
Response samples
- 200
{- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "proposal_id": "string",
- "depositor": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}Vote a proposal Deprecated
Send transaction to vote a proposal
path Parameters
| proposalId required | string Example: 2 proposal id |
Request Body schema: application/json
valid value of "option" field can be "yes", "no", "no_with_veto" and "abstain"
object | |
| voter | string bech32 encoded address |
| option | string |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "voter": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "option": "yes"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query vote Deprecated
Query vote information by proposal Id and voter address
path Parameters
| proposalId required | string Example: 2 proposal id |
| voter required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 voter address |
Responses
Response samples
- 200
{- "voter": "string",
- "proposal_id": "string",
- "options": [
- {
- "option": "VOTE_OPTION_UNSPECIFIED",
- "weight": "string"
}
]
}Get a proposal's tally result at the current time Deprecated
Gets a proposal's tally result at the current time. If the proposal is pending deposits (i.e status 'DepositPeriod') it returns an empty tally result.
path Parameters
| proposalId required | string Example: 2 proposal id |
Responses
Response samples
- 200
{- "yes": "0.0000000000",
- "abstain": "0.0000000000",
- "no": "0.0000000000",
- "no_with_veto": "0.0000000000"
}Get the total rewards balance from all delegations Deprecated
Get the sum of all the rewards earned by delegations by a single delegator
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Responses
Response samples
- 200
{- "rewards": [
- {
- "validator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "reward": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}
], - "total": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}Withdraw all the delegator's delegation rewards Deprecated
Withdraw all the delegator's delegation rewards
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Request Body schema: application/json
object | |||||||||||||||||||
| |||||||||||||||||||
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Query a delegation reward Deprecated
Query a single delegation reward by a delegator
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
[- {
- "denom": "uluna",
- "amount": "50"
}
]Withdraw a delegation reward Deprecated
Withdraw a delegator's delegation reward from a single validator
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Request Body schema: application/json
object | |||||||||||||||||||
| |||||||||||||||||||
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Get the rewards withdrawal address Deprecated
Get the delegations' rewards withdrawal address. This is the address in which the user will receive the reward funds
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Responses
Response samples
- 200
"terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"Replace the rewards withdrawal address Deprecated
Replace the delegations' rewards withdrawal address for a new one.
path Parameters
| delegatorAddr required | string Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv Bech32 AccAddress of Delegator |
Request Body schema: application/json
object | |
| withdraw_address | string bech32 encoded address |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "withdraw_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Validator distribution information Deprecated
Query the distribution information of a single validator
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
{- "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
- "self_bond_rewards": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "val_commission": {
- "commission": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}
}Fee distribution outstanding rewards of a single validator Deprecated
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
{- "rewards": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}Commission and self-delegation rewards of a single validator Deprecated
Query the commission and self-delegation rewards of validator.
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Responses
Response samples
- 200
[- {
- "denom": "uluna",
- "amount": "50"
}
]Withdraw the validator's rewards Deprecated
Withdraw the validator's self-delegation and commissions rewards
path Parameters
| validatorAddr required | string Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l Bech32 OperatorAddress of validator |
Request Body schema: application/json
object | |||||||||||||||||||
| |||||||||||||||||||
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Generate wasm store code message Deprecated
Request Body schema: application/json
object | |
| wasm_bytes | string |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "wasm_bytes": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Instantiate wasm contract Deprecated
path Parameters
| codeID required | number code ID you want to instantiate |
Request Body schema: application/json
object | |
| label | string string contract label |
Array of objects | |
| msg | string base64 encoded binary msg |
| admin | string bech32 encoded address |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "label": "string",
- "deposit": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "msg": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH",
- "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Get code info of the code ID Deprecated
path Parameters
| codeID required | number code ID you want to instantiate |
Responses
Response samples
- 200
{- "data": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH",
- "code_info": {
- "code_id": 0,
- "creator": "string",
- "data_hash": "string",
- "instantiate_permission": {
- "permission": 0,
- "address": "string"
}
}
}Execute wasm contract message Deprecated
path Parameters
| contractAddr required | string contract address you want to execute |
Request Body schema: application/json
object | |
Array of objects | |
| exec_msg | string base64 encoded binary msg |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "coins": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "exec_msg": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Get contract info of the contract Address Deprecated
path Parameters
| contractAddr required | string contract address you want to execute |
Responses
Response samples
- 200
{- "address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "contract_info": {
- "code_id": "string",
- "creator": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "label": "string",
- "created_at": {
- "block_height": 0,
- "tx_index": 0
}, - "ibc_port_id": "string"
}
}Migrate wasm contract to new code base Deprecated
path Parameters
| contractAddr required | string contract address you want to migrate |
Request Body schema: application/json
object | |
| admin | string bech32 encoded address |
| code_id | number <integer> |
| msg | string base64 encoded binary msg |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "code_id": 10,
- "msg": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Update wasm contract admin to new address Deprecated
path Parameters
| contractAddr required | string contract address you want to update admin |
Request Body schema: application/json
object | |
| admin | string bech32 encoded address |
Responses
Request samples
- Payload
{- "base_req": {
- "from": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
- "memo": "Sent via Terra Station 🚀",
- "chain_id": "Columbus-5",
- "account_number": "0",
- "sequence": "1",
- "gas": "200000",
- "gas_adjustment": "1.2",
- "fees": [
- {
- "denom": "uluna",
- "amount": "50"
}
], - "simulate": false
}, - "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}Response samples
- 200
{- "msg": [
- "string"
], - "fee": {
- "gas": "string",
- "amount": [
- {
- "denom": "uluna",
- "amount": "50"
}
]
}, - "memo": "string",
- "signature": {
- "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}, - "account_number": "0",
- "sequence": "0"
}
}Accounts returns all the existing accounts
Since: cosmos-sdk 0.43
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Returns list of `Authorization`, granted to the grantee by the granter.
query Parameters
| granter | string |
| grantee | string |
| msg_type_url | string Optional, msg_type_url, when set, will query only grants matching given msg type. |
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
GranteeGrants returns a list of `GrantAuthorization` by grantee.
Since: cosmos-sdk 0.45.2
path Parameters
| grantee required | string |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
GranterGrants returns list of `GrantAuthorization`, granted by granter.
Since: cosmos-sdk 0.45.2
path Parameters
| granter required | string |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
AllBalances queries the balance of all coins for a single account.
path Parameters
| address required | string address is the address to query balances for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
DenomsMetadata queries the client metadata for all registered coin denominations.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
SpendableBalances queries the spenable balance of all coins for a single account.
path Parameters
| address required | string address is the address to query spendable balances for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
TotalSupply queries the total supply of all coins.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ValidatorSlashes queries slash events of a validator.
path Parameters
| validator_address required | string validator_address defines the validator address to query for. |
query Parameters
| starting_height | string <uint64> starting_height defines the optional starting height to query the slashes. |
| ending_height | string <uint64> starting_height defines the optional ending height to query the slashes. |
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
AllEvidence queries all evidence.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Allowances returns all the grants for address.
path Parameters
| grantee required | string |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
AllowancesByGranter returns all the grants given by an address Since v0.46
path Parameters
| granter required | string |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Proposals queries all proposals based on given status.
query Parameters
| proposal_status | string Default: "PROPOSAL_STATUS_UNSPECIFIED" Enum: "PROPOSAL_STATUS_UNSPECIFIED" "PROPOSAL_STATUS_DEPOSIT_PERIOD" "PROPOSAL_STATUS_VOTING_PERIOD" "PROPOSAL_STATUS_PASSED" "PROPOSAL_STATUS_REJECTED" "PROPOSAL_STATUS_FAILED" proposal_status defines the status of the proposals.
|
| voter | string voter defines the voter address for the proposals. |
| depositor | string depositor defines the deposit addresses from the proposals. |
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Deposits queries all deposits of a single proposal.
path Parameters
| proposal_id required | string <uint64> proposal_id defines the unique id of the proposal. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Votes queries votes of a given proposal.
path Parameters
| proposal_id required | string <uint64> proposal_id defines the unique id of the proposal. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
SigningInfos queries signing info of all validators
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
DelegatorDelegations queries all delegations of a given delegator address.
path Parameters
| delegator_addr required | string delegator_addr defines the delegator address to query for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Redelegations queries redelegations of given address.
path Parameters
| delegator_addr required | string delegator_addr defines the delegator address to query for. |
query Parameters
| src_validator_addr | string src_validator_addr defines the validator address to redelegate from. |
| dst_validator_addr | string dst_validator_addr defines the validator address to redelegate to. |
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
path Parameters
| delegator_addr required | string delegator_addr defines the delegator address to query for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
DelegatorValidators queries all validators info for given delegator address.
path Parameters
| delegator_addr required | string delegator_addr defines the delegator address to query for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Validators queries all validators that match the given status.
query Parameters
| status | string status enables to query for validators matching a given status. |
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ValidatorDelegations queries delegate info for given validator.
path Parameters
| validator_addr required | string validator_addr defines the validator address to query for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ValidatorUnbondingDelegations queries unbonding delegations of a validator.
path Parameters
| validator_addr required | string validator_addr defines the validator address to query for. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
path Parameters
| last_height required | string <int64> last height of the current chain must be sent in request as this is the height under which next consensus state is stored |
Responses
Codes gets the metadata for all stored wasm codes
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ContractsByCode lists all smart contracts for a code id
path Parameters
| code_id required | string <uint64> |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
PinnedCodes gets the pinned code ids
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ContractHistory gets the contract code history
path Parameters
| address required | string address is the address of the contract to query |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
AllContractState gets all raw store data for a single contract
path Parameters
| address required | string address is the address of the contract |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Channels queries all the IBC channels of a chain.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ChannelConsensusState queries for the consensus state for the channel associated with the provided channel identifiers.
path Parameters
| channel_id required | string channel unique identifier |
| port_id required | string port unique identifier |
| revision_number required | string <uint64> revision number of the consensus state |
| revision_height required | string <uint64> revision height of the consensus state |
Responses
PacketAcknowledgements returns all the packet acknowledgements associated with a channel.
path Parameters
| channel_id required | string channel unique identifier |
| port_id required | string port unique identifier |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
| packet_commitment_sequences | Array of strings <uint64> list of packet sequences. |
Responses
PacketCommitments returns all the packet commitments hashes associated with a channel.
path Parameters
| channel_id required | string channel unique identifier |
| port_id required | string port unique identifier |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a channel and sequences.
path Parameters
| channel_id required | string channel unique identifier |
| port_id required | string port unique identifier |
| packet_ack_sequences required | Array of strings <uint64> non-empty list of acknowledgement sequences |
Responses
UnreceivedPackets returns all the unreceived IBC packets associated with a channel and sequences.
path Parameters
| channel_id required | string channel unique identifier |
| port_id required | string port unique identifier |
| packet_commitment_sequences required | Array of strings <uint64> non-empty list of packet sequences |
Responses
ConnectionChannels queries all the channels associated with a connection end.
path Parameters
| connection required | string connection unique identifier |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ClientStates queries all the IBC light clients of a chain.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ConsensusStates queries all the consensus state associated with a given client.
path Parameters
| client_id required | string client identifier |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
ConsensusState queries a consensus state associated with a client state at a given height.
path Parameters
| client_id required | string client identifier |
| revision_number required | string <uint64> consensus state revision number |
| revision_height required | string <uint64> consensus state revision height |
query Parameters
| latest_height | boolean <boolean> latest_height overrrides the height field and queries the latest stored ConsensusState. |
Responses
Connections queries all the IBC connections of a chain.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
DenomTraces queries all denomination traces.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
GetLatestValidatorSet queries latest validator-set.
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
GetValidatorSetByHeight queries validator-set at a given height.
path Parameters
| height required | string <int64> |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
Responses
Simulate simulates executing a transaction for estimating gas usage.
Request Body schema: application/json
object (cosmos.tx.v1beta1.Tx) Tx is the standard type used for broadcasting transactions. | |
| tx_bytes | string <byte> tx_bytes is the raw transaction. Since: cosmos-sdk 0.43 |
Responses
Request samples
- Payload
{- "tx": {
- "body": {
- "messages": [
- {
- "type_url": "string",
- "value": "string"
}
], - "memo": "string",
- "timeout_height": "string",
- "extension_options": [
- {
- "type_url": "string",
- "value": "string"
}
], - "non_critical_extension_options": [
- {
- "type_url": "string",
- "value": "string"
}
]
}, - "auth_info": {
- "signer_infos": [
- {
- "public_key": {
- "type_url": "string",
- "value": "string"
}, - "mode_info": {
- "single": {
- "mode": "SIGN_MODE_UNSPECIFIED"
}, - "multi": {
- "bitarray": {
- "extra_bits_stored": 0,
- "elems": "string"
}, - "mode_infos": [
- { }
]
}
}, - "sequence": "string"
}
], - "fee": {
- "amount": [
- {
- "denom": "string",
- "amount": "string"
}
], - "gas_limit": "string",
- "payer": "string",
- "granter": "string"
}
}, - "signatures": [
- "string"
]
}, - "tx_bytes": "string"
}GetTxsEvent fetches txs by event.
query Parameters
| events | Array of strings events is the list of transaction event type. |
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
| order_by | string Default: "ORDER_BY_UNSPECIFIED" Enum: "ORDER_BY_UNSPECIFIED" "ORDER_BY_ASC" "ORDER_BY_DESC"
|
Responses
BroadcastTx broadcast transaction.
Request Body schema: application/json
| tx_bytes | string <byte> tx_bytes is the raw transaction. |
| mode | string Default: "BROADCAST_MODE_UNSPECIFIED" Enum: "BROADCAST_MODE_UNSPECIFIED" "BROADCAST_MODE_BLOCK" "BROADCAST_MODE_SYNC" "BROADCAST_MODE_ASYNC" BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
|
Responses
Request samples
- Payload
{- "tx_bytes": "string",
- "mode": "BROADCAST_MODE_UNSPECIFIED"
}GetBlockWithTxs fetches a block with decoded txs.
Since: cosmos-sdk 0.45.2
path Parameters
| height required | string <int64> height is the height of the block to query. |
query Parameters
| pagination.key | string <byte> 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. |
| pagination.offset | 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. |
| pagination.limit | 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. |
| pagination.count_total | boolean <boolean> 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. |
| pagination.reverse | boolean <boolean> reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |