On-chain RPC · JSON-RPC

Bitcoin RPC

Bitcoin JSON-RPC: blockchain info, block hashes, block headers, transactions and mempool reads.

propertyvalue
HTTP JSON-RPCPOST https://openapihub.dev/rpc/bitcoin
WebSocket RPCHTTP JSON-RPC
Canonical / Aliasbitcoin / bitcoin
Chain ID0
Family / Transportbitcoin-jsonrpc / json-rpc
Archive routingLive head reads
JSON-RPC batchRead-only arrays of 1..20 calls on HTTP POST (max 2 eth_getLogs; empty/>20 refused -32600; write methods refused as a whole -32015)
Free key limits80 requests per second per key, bursts up to 160, 60 requests in flight.

First request

curl -sS -X POST "https://openapihub.dev/rpc/bitcoin" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getblockhash","params":[0]}'

Allowlisted read methods (17)

decoderawtransaction, estimatesmartfee, getbestblockhash, getblock, getblockchaininfo, getblockcount, getblockhash, getblockheader, getchaintips, getdifficulty, getmempoolinfo, getmininginfo, getnetworkinfo, getrawmempool, getrawtransaction, gettxout, gettxoutsetinfo

FAQ

What is the Bitcoin RPC endpoint URL?

Send JSON-RPC 2.0 POST requests to https://openapihub.dev/rpc/bitcoin with your key in the X-Hub-Key header.

What are the rate limits for Bitcoin RPC?

Every free key includes 80 requests per second sustained, bursts up to 160, and 60 concurrent in-flight requests.

Does Bitcoin support archive reads or WebSocket RPC?

Bitcoin supports live head reads.

More networks: Ethereum · Base · Arbitrum One · Optimism · Polygon PoS · BNB Smart Chain (BSC) · Avalanche C-Chain · Solana · HyperEVM (Hyperliquid) · Linea · zkSync Era · TON · Sui · Celestia (Cosmos SDK) · Aptos · TRON · Scroll · NEAR · Gnosis Chain · All 153 chains

Get a free key