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

MethodDescription
getinfoBasic node status, version, block height, connections
getnetworkinfoNetwork status, peer info, protocol version

Blockchain State

MethodDescription
getblockchaininfoChain state, activated upgrades, value pool balances
getbestblockhashHash of the chain tip
getbestblockheightandhashChain tip height and hash together (Zebra-specific)
getblockcountChain tip height
getblockhashBlock hash by height
getblockBlock by hash or height (verbosity 0/1/2, includes nTx)
getblockheaderBlock header only
getdifficultyProof-of-work difficulty multiplier

Transactions

MethodDescription
getrawtransactionRaw transaction by txid (verbosity 0/1)
sendrawtransactionSubmit a signed raw transaction
gettxoutUTXO lookup (transparent outputs only)

Mempool

MethodDescription
getrawmempoolList transactions in the mempool
getmempoolinfoMempool statistics

Mining & Difficulty

MethodDescription
getblocktemplateTemplate for constructing candidate blocks
getmininginfoMining status and current difficulty
getnetworksolpsEstimated network Equihash solutions per second

Peer Info

MethodDescription
getpeerinfoConnected peer details

Address Queries (Zcash Extensions)

MethodDescription
getaddressbalanceTransparent balance for one or more addresses
getaddresstxidsTransaction IDs involving an address
getaddressutxosUTXOs held by an address

Address & Script Utilities

MethodDescription
validateaddressValidate a transparent (t1/t3) address
z_validateaddressValidate a Sapling, Orchard, or Unified address

Shielded Pool

MethodDescription
z_getsubtreesbyindexSubtree roots by index (Ironwood NCT)
z_gettreestateNote commitment tree state at a given block
z_listunifiedreceiversDecompose a Unified Address into its component receivers

Support