Bitcoin Cash JSON-RPC API

The Bitcoin Cash (BCH) JSON-RPC API provides high-performance, indexed blockchain data via JSON methods. This allows you to perform complex, fast queries—such as fetching address transaction histories, wallet balances, xpub states, UTXOs, and real-time fiat conversion rates

Base URL

bashhttps://shared.eu-central-1.getblock.io/

Available API Methods

GetBlock provides access to Bitcoin Cash Node JSON-RPC methods. Methods that require wallet or node-administration privileges are not available on shared endpoints and are omitted below.

Blockchain Methods

MethodDescription
getbestblockhashReturns the hash of the best (tip) block
getblockReturns block data by hash
getblockchaininfoReturns blockchain state information
getblockcountReturns the height of the chain tip
getblockhashReturns the block hash at a height
getblockheaderReturns a block header by hash
getblockstatsReturns per-block statistics
getchaintipsReturns known chain tips
getchaintxstatsReturns chain-wide transaction statistics
getdifficultyReturns the current difficulty
getfinalizedblockhashReturns the finalized block hash
gettxoutReturns an unspent output
gettxoutproofReturns a transaction inclusion proof
preciousblockMarks a block as preferred during a tie

Mempool Methods

MethodDescription
getrawmempoolReturns mempool transaction ids
getmempoolinfoReturns mempool state
getmempoolentryReturns a mempool entry
getmempoolancestorsReturns in-mempool ancestors
getmempooldescendantsReturns in-mempool descendants

Transaction Methods

MethodDescription
getrawtransactionReturns raw transaction data
sendrawtransactionBroadcasts a signed transaction
createrawtransactionBuilds an unsigned transaction
decoderawtransactionDecodes raw transaction hex
decodescriptDecodes a hex script
combinerawtransactionMerges partially signed transactions
signrawtransactionwithkeySigns a transaction with keys
testmempoolacceptTests mempool acceptance

PSBT Methods

MethodDescription
createpsbtCreates an empty PSBT
converttopsbtConverts a raw transaction to PSBT
combinepsbtCombines PSBTs
decodepsbtDecodes a PSBT
finalizepsbtFinalizes a PSBT

Mining Methods

MethodDescription
getmininginfoReturns mining information
getnetworkhashpsEstimates network hash rate
getblocktemplateReturns a block template for mining

Utility Methods

MethodDescription
getmemoryinfoReturns node memory usage
getrpcinfoReturns RPC server runtime state
uptimeReturns node uptime
validateaddressValidates a BCH address
verifymessageVerifies a signed message
helpLists commands or command help