For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bitcoin Cash JSON-RPC API

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

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

https://go.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

Method
Description

getbestblockhash

Returns the hash of the best (tip) block

getblock

Returns block data by hash

getblockchaininfo

Returns blockchain state information

getblockcount

Returns the height of the chain tip

getblockhash

Returns the block hash at a height

getblockheader

Returns a block header by hash

getblockstats

Returns per-block statistics

getchaintips

Returns known chain tips

getchaintxstats

Returns chain-wide transaction statistics

getdifficulty

Returns the current difficulty

getfinalizedblockhash

Returns the finalized block hash

gettxout

Returns an unspent output

gettxoutproof

Returns a transaction inclusion proof

preciousblock

Marks a block as preferred during a tie

Mempool Methods

Method
Description

getrawmempool

Returns mempool transaction ids

getmempoolinfo

Returns mempool state

getmempoolentry

Returns a mempool entry

getmempoolancestors

Returns in-mempool ancestors

getmempooldescendants

Returns in-mempool descendants

Transaction Methods

Method
Description

getrawtransaction

Returns raw transaction data

sendrawtransaction

Broadcasts a signed transaction

createrawtransaction

Builds an unsigned transaction

decoderawtransaction

Decodes raw transaction hex

decodescript

Decodes a hex script

combinerawtransaction

Merges partially signed transactions

signrawtransactionwithkey

Signs a transaction with keys

testmempoolaccept

Tests mempool acceptance

PSBT Methods

Method
Description

createpsbt

Creates an empty PSBT

converttopsbt

Converts a raw transaction to PSBT

combinepsbt

Combines PSBTs

decodepsbt

Decodes a PSBT

finalizepsbt

Finalizes a PSBT

Mining Methods

Method
Description

getmininginfo

Returns mining information

getnetworkhashps

Estimates network hash rate

getblocktemplate

Returns a block template for mining

Utility Methods

Method
Description

getmemoryinfo

Returns node memory usage

getrpcinfo

Returns RPC server runtime state

uptime

Returns node uptime

validateaddress

Validates a BCH address

verifymessage

Verifies a signed message

help

Lists commands or command help

Last updated

Was this helpful?