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 errornaming the lowest available height. Read the floor from status undersync_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
0xprefix 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_pagesmall.
Methods
| Method | Description |
|---|---|
| status | Node, sync, and validator status |
| health | Node liveness check |
| net_info | Peer connections |
| block | Block by height (or latest) |
| block_results | Execution results and events for a block |
| validators | Validator set at a height |
| tx | Transaction result by hash |
| tx_search | Search transactions by event query |
| abci_query | Query any module state via ABCI |
| broadcast_tx_sync | Broadcast a transaction (CheckTx) |
| blockchain | Block headers in a height range |
| block_by_hash | Block by hash |
| commit | Commit (signed header) at a height |
| header | Block header at a height |
| header_by_hash | Block header by hash |
| genesis | Genesis document |
| genesis_chunked | Genesis document in chunks |
| consensus_params | Consensus parameters at a height |
| consensus_state | Current consensus state |
| dump_consensus_state | Detailed consensus state |
| unconfirmed_txs | Mempool transactions |
| num_unconfirmed_txs | Mempool transaction count |
| block_search | Search blocks by event query |
| abci_info | ABCI application info |
| check_tx | Check a transaction without broadcasting |
| broadcast_tx_async | Broadcast a transaction (fire-and-forget) |
| broadcast_tx_commit | Broadcast and wait for a block |
| broadcast_evidence | Submit misbehaviour evidence |
Support
- Support: support@getblock.io