For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Kava — Information, Transactions, ABCI, Cosmos REST methods (3/3)

API reference for Kava. All methods ->

Part 3 of 3: 1 · 2 · 3

ABCI

abci_info

Retrieves application info.

Parameters


None.

Returns

Application info.

Request example

curl -X POST https://rpc.ankr.com/kava_rpc/YOUR_ANKR_API_KEY \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "abci_info",
"params": [],
"id": 1
}'

Response example

{
"id": 1,
"jsonrpc": "2.0",
"result": {
"response": {
"data": "kava",
"version": "0.27.0",
"app_version": "8",
"last_block_height": "13239641",
"last_block_app_hash": "wLirVXfBEeq0jZcrshBGWS7AGN19N7p8aQqMAiaIl+I="
}
}
}

abci_query

Queries the application for particular information.

Parameters


  • path (string; required): a path to the data ("/a/b/c").
  • data (string; required): the hex-encoded data.
  • height (integer; default: 0): the height (0 means latest).
  • prove (boolean; default: false): adds proofs of the transactions inclusion in the block.

Returns

Particular info according to the query submitted.

Request example

curl -X POST https://rpc.ankr.com/kava_rpc/YOUR_ANKR_API_KEY \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "abci_query",
"params": ["a/b/c", "the_data", "1", true],
"id": 1
}'

Response example

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"response": {
"code": 0,
"log": "",
"info": "",
"index": -1,
"key": "0x6b61766131387879377a...",
"value": "0x123456789abcdef", // Hex-encoded value
"proofOps": null,
"height": "12345",
"codespace": ""
}
}
}

Cosmos REST methods

Query:

Service:

Auth methods

/cosmos/auth/v1beta1/accounts/{address}

Retrieves account details based on address.

Parameters

  • address (string; required): an address to query for account details.

Returns

Account details.

Request example

curl https://rpc.ankr.com/http/kava_api/cosmos/auth/v1beta1/accounts/{address}

Response example

{
"account": {
"type_url": "string",
"value": "string"
}
}

/cosmos/auth/v1beta1/params

Retrieves all parameters.

Parameters

None.

Returns

Parameters.

Request example

curl https://rpc.ankr.com/http/kava_api/cosmos/auth/v1beta1/params

Response example

{
"params": {
"max_memo_characters": "string",
"tx_sig_limit": "string",
"tx_size_cost_per_byte": "string",
"sig_verify_cost_ed25519": "string",
"sig_verify_cost_secp256k1": "string"
}
}

Bank methods