JSON-RPC API

The CometBFT JSON-RPC interface for Akash: consensus and node status, block and transaction data, mempool, transaction broadcast, and abci_query for reading any Cosmos SDK or Akash module state. All methods are JSON-RPC 2.0 POST requests to the endpoint base URL.

Akash specifics

  • Shared nodes are pruned. Heights below roughly 26,980,292 are not retained and return -32603 Internal error naming the lowest available height. Read the floor from status under sync_info.earliest_block_height.
  • Hash encodings differ per method. block_by_hash and tx take the hash base64-encoded, while header_by_hash takes the plain hex form. A 0x prefix is rejected by all three.
  • Wide queries time out. A block_search spanning millions of heights returns a gateway timeout; narrow the range and keep per_page small.

Methods

MethodDescription
statusNode, sync, and validator status
healthNode liveness check
net_infoPeer connections
blockBlock by height (or latest)
block_resultsExecution results and events for a block
validatorsValidator set at a height
txTransaction result by hash
tx_searchSearch transactions by event query
abci_queryQuery any module state via ABCI
broadcast_tx_syncBroadcast a transaction (CheckTx)
blockchainBlock headers in a height range
block_by_hashBlock by hash
commitCommit (signed header) at a height
headerBlock header at a height
header_by_hashBlock header by hash
genesisGenesis document
genesis_chunkedGenesis document in chunks
consensus_paramsConsensus parameters at a height
consensus_stateCurrent consensus state
dump_consensus_stateDetailed consensus state
unconfirmed_txsMempool transactions
num_unconfirmed_txsMempool transaction count
block_searchSearch blocks by event query
abci_infoABCI application info
check_txCheck a transaction without broadcasting
broadcast_tx_asyncBroadcast a transaction (fire-and-forget)
broadcast_tx_commitBroadcast and wait for a block
broadcast_evidenceSubmit misbehaviour evidence

Support