Kava — Cosmos REST methods (4/4)
API reference for Kava. All methods ->
/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}
Retrieves the consensus state associated with the connection.
Parameters
connection_id(string; required): a connection unique identifier.revision_number(string, uint64): a required revision number.revision_height(string, uint64): a required revision height.
Returns
Consensus state.
Request example
curl https://rpc.ankr.com/http/kava_api/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}
Response example
{
"consensus_state": {
"type_url": "string",
"value": "string"
},
"client_id": "string",
"proof": "string",
"proof_height": {
"revision_number": "string",
"revision_height": "string"
}
}
Ibc applications methods
/ibc/applications/transfer/v1beta1/denom_traces
Retrieves all denomination traces.
Parameters
pagination.key(string, byte): a value returned inPageResponse.next_keyto begin querying the next page efficiently. Only one ofoffsetorkeyshould be set.pagination.key(string, uint64): a numeric offset that can be used when key is unavailable (less efficient than using key). Only one ofoffsetorkeyshould be set.pagination.limit(string, uint64): a total number of results to be returned in the results page. If empty, will default to a value to be set by each app.pagination.count_total(boolean): set to true to indicate that the result set should include a count of the total number of items available for pagination in the UIs. Only respected whenoffsetis used, ignored whenkeyis set.
Returns
Denomination traces.
Request example
curl https://rpc.ankr.com/http/kava_api/ibc/applications/transfer/v1beta1/denom_traces
Response example
{
"denom_traces": [
{
"path": "string",
"base_denom": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}
/ibc/applications/transfer/v1beta1/denom_traces/{hash}
Retrieves a denomination trace information by hash.
Parameters
hash(string, hex; required): a hash of the denomination trace information.
Returns
Denomination traces.
Request example
curl https://rpc.ankr.com/http/kava_api/ibc/applications/transfer/v1beta1/denom_traces/{hash}
Response example
{
"denom_trace": {
"path": "string",
"base_denom": "string"
}
}
/ibc/applications/transfer/v1beta1/params
Retrieves all parameters of the IBC transfer module.
Parameters
None.
Returns
Parameters of the IBC transfer module.
Request example
curl https://rpc.ankr.com/http/kava_api/ibc/applications/transfer/v1beta1/params
Response example
{
"params": {
"send_enabled": true,
"receive_enabled": true
}
}
Tx methods
/cosmos/tx/v1beta1/simulate
Simulates executing a transaction for estimating gas usage.
Parameters
<body>(object; required):
{
"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": [
null
]
}
},
"sequence": "string"
}
],
"fee": {
"amount": [
{
"denom": "string",
"amount": "string"
}
],
"gas_limit": "string",
"payer": "string",
"granter": "string"
}
},
"signatures": [
"string"
]
}
}
Returns
Estimated gas usage.
Request example
curl https://rpc.ankr.com/http/kava_api/cosmos/tx/v1beta1/simulate
Response example
{
"gas_info": {
"gas_wanted": "string",
"gas_used": "string"
},
"result": {
"data": "string",
"log": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string",
"index": true
}
]
}
]
}
}