Bitcoin Cash

📘

See the Bitcoin Cash RPC API connection guide.

blockchain

MethodNotesCompute Unit Value
getbestblockhashReturns the hash of the best block in the active chain.1
getblockReturns a block identified by hash, with detail controlled by the verbosity parameter.5
getblockchaininfoReturns the node's current blockchain-processing state.1
getblockcountReturns the height of the active chain.1
getblockfilterReturns the compact block filter and its header for a block hash.5
getblockhashReturns the block hash at a specified height.1
getblockheaderReturns the header for a block hash.5
getblockstatsReturns calculated statistics for a specified block.50
getchaintipsReturns information about known blockchain tips.50
getchaintxstatsReturns transaction-count and rate statistics for a block range.5
getdifficultyReturns the current proof-of-work difficulty.1
getmempoolancestorsReturns the in-mempool ancestors of a transaction.5
getmempooldescendantsReturns the in-mempool descendants of a transaction.5
getmempoolentryReturns metadata for a transaction in the mempool.5
getmempoolinfoReturns aggregate mempool information.5
getnetworkhashpsEstimates the network hash rate over a requested block interval.1
getrawmempoolReturns transaction IDs or detailed entries from the mempool.10
gettxoutReturns information about an unspent transaction output.5
gettxoutproofReturns a serialized proof that transactions are included in a block.10
gettxoutsetinfoReturns statistics about the current unspent-output set.100

rawtransactions

MethodNotesCompute Unit Value
createrawtransactionCreates an unsigned serialized transaction from supplied inputs and outputs.10
decoderawtransactionDecodes a serialized transaction without broadcasting it.10
decodescriptDecodes a hexadecimal script into a JSON description.10
getrawtransactionReturns a raw transaction by transaction ID.10
sendrawtransactionSubmits a serialized transaction to the network.100
testmempoolacceptTests whether raw transactions would be accepted into the mempool without submitting them.5

util

MethodNotesCompute Unit Value
estimatefeeReturns an estimated fee rate for confirmation within a target number of blocks.50
estimatesmartfeeReturns a smart fee-rate estimate for a target confirmation time.50
validateaddressReturns validation and metadata information for an address.1
verifymessageVerifies that a message signature was produced by an address.1