# JSON-RPC API

> GetBlock provides fast and reliable access to Akash nodes via the CometBFT JSON-RPC API. Connect to the Akash network without running your own infrastructure.

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](/api-reference/akash-akt/json_rpc-api/status/) under `sync_info.earliest_block_height`.
* **Hash encodings differ per method.** [block_by_hash](/api-reference/akash-akt/json_rpc-api/block_by_hash/) and [tx](/api-reference/akash-akt/json_rpc-api/tx/) take the hash **base64-encoded**, while [header_by_hash](/api-reference/akash-akt/json_rpc-api/header_by_hash/) takes the **plain hex** form. A `0x` prefix is rejected by all three.
* **Wide queries time out.** A [block_search](/api-reference/akash-akt/json_rpc-api/block_search/) spanning millions of heights returns a gateway timeout; narrow the range and keep `per_page` small.

## 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](mailto:support@getblock.io)
