Zcash JSON-RPC API
The Zcash JSON-RPC API exposes the Zebra (zebrad) node interface: a Bitcoin Core-compatible method set for blocks, transactions, the mempool, and mining, extended with z_* methods for the shielded pools. Requests POST a JSON-RPC 2.0 body to the endpoint; the method is selected by the body.
Unlike most UTXO nodes, Zebra indexes transparent addresses, so getaddressbalance, getaddresstxids, and getaddressutxos answer address queries directly over JSON-RPC. Shielded (Sapling, Orchard) balances and notes cannot be enumerated by any public endpoint, because they are encrypted to the holder's viewing key.
Base URL
bashhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/Request Format
bashcurl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "getblockcount",
"params": [],
"id": "getblock.io"
}'Available Methods
Node & Client Info
| Method | Description |
|---|---|
getinfo | Basic node status, version, block height, connections |
getnetworkinfo | Network status, peer info, protocol version |
Blockchain State
| Method | Description |
|---|---|
getblockchaininfo | Chain state, activated upgrades, value pool balances |
getbestblockhash | Hash of the chain tip |
getbestblockheightandhash | Chain tip height and hash together (Zebra-specific) |
getblockcount | Chain tip height |
getblockhash | Block hash by height |
getblock | Block by hash or height (verbosity 0/1/2, includes nTx) |
getblockheader | Block header only |
getdifficulty | Proof-of-work difficulty multiplier |
Transactions
| Method | Description |
|---|---|
getrawtransaction | Raw transaction by txid (verbosity 0/1) |
sendrawtransaction | Submit a signed raw transaction |
gettxout | UTXO lookup (transparent outputs only) |
Mempool
| Method | Description |
|---|---|
getrawmempool | List transactions in the mempool |
getmempoolinfo | Mempool statistics |
Mining & Difficulty
| Method | Description |
|---|---|
getblocktemplate | Template for constructing candidate blocks |
getmininginfo | Mining status and current difficulty |
getnetworksolps | Estimated network Equihash solutions per second |
Peer Info
| Method | Description |
|---|---|
getpeerinfo | Connected peer details |
Address Queries (Zcash Extensions)
| Method | Description |
|---|---|
getaddressbalance | Transparent balance for one or more addresses |
getaddresstxids | Transaction IDs involving an address |
getaddressutxos | UTXOs held by an address |
Address & Script Utilities
| Method | Description |
|---|---|
validateaddress | Validate a transparent (t1/t3) address |
z_validateaddress | Validate a Sapling, Orchard, or Unified address |
Shielded Pool
| Method | Description |
|---|---|
z_getsubtreesbyindex | Subtree roots by index (Ironwood NCT) |
z_gettreestate | Note commitment tree state at a given block |
z_listunifiedreceivers | Decompose a Unified Address into its component receivers |
Support
- Support: support@getblock.io