Bitcoin
Bitcoin Core JSON-RPC Interface
Last updated
Bitcoin Core JSON-RPC Interface
Last updated
See RPC documentation here for details on specific methods:
Endpoint URL
https://rpc.rebarlabs.io/bitcoin
Protocol
JSON‑RPC 2.0 over HTTPS
Auth
X-Api-Key: <API‑KEY>
header
getbestblockhash
Return the hash of the chain tip.
getblockcount
Current height of the best blockchain.
getblockhash
Block hash for a specified height.
getblockheader
Retrieve a block header in hex or JSON.
getdifficulty
Current network difficulty target.
getchaintips
List all known chain tips (main & forks).
getchaintxstats
Aggregate transaction statistics over recent blocks.
getmempoolinfo
Overview of mempool size, bytes, and usage limits.
getmempoolentry
Detailed stats for a specific mempool transaction.
gettxout
Info about an unspent output (txid
, vout
).
gettxoutsetinfo
Global statistics for the current UTXO set.
verifytxoutproof
Validate a Merkle proof produced by gettxoutproof
.
gettxoutproof
Create a Merkle proof for one or more txids.
estimatesmartfee
Fee‐rate estimate needed for confirmation in N blocks.
getindexinfo
Status of optional indexes (txindex, addrindex, etc.).
getnetworkinfo
Version, peers, services, and relay fee details.
getblock
Full block data by hash or height (raw or decoded).
getblockstats
Per‑block statistics (fees, size, inputs/outputs, etc.).
getrawtransaction
Raw or decoded transaction by txid
.
sendrawtransaction
Broadcast a raw transaction to the network.
testmempoolaccept
Check if a transaction would be accepted (dry‑run).