Bitcoin Mainnet RPC

Call Bitcoin Core-compatible JSON-RPC methods on Bitcoin Mainnet through GraphOps RPC over HTTPS.

Network
mainnet
CAIP-2 ID
bip122:000000000019d6689c085ae165831e93
Network type
Mainnet
Services
RPC

GraphOps services on Bitcoin Mainnet

One API key from your organization can include every service you use, and all of them draw from the organization's credit balance.

RPC

Send JSON-RPC requests over HTTPS. Bitcoin endpoints do not support WebSocket. Archive data is available: every block since genesis, through getblock.

HTTPS
https://rpc.graphops.xyz/v1/bitcoin/mainnet

Bitcoin Mainnet network details

Use these identifiers to name Bitcoin Mainnet in requests, manifests and package configuration.

RPC network
mainnet
CAIP-2 network ID
bip122:000000000019d6689c085ae165831e93
Network type
Mainnet
Other network names
bitcoinbtc-mainnet
Block explorer
btcscan.org(opens in a new tab)

Make a first Bitcoin Mainnet request

This request reads Bitcoin Mainnet chain information with getblockchaininfo. Create an API key that includes RPC in your organization and export it as GRAPHOPS_API_KEY. The example sends it in the Authorization header.

Prerequisites

  1. Set GRAPHOPS_API_KEY to your GraphOps API key.

  2. Run the command in a terminal with curl installed.

CLI · curl

curl --fail-with-body --silent --show-error 'https://rpc.graphops.xyz/v1/bitcoin/mainnet' \
  -H "Authorization: Bearer ${GRAPHOPS_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getblockchaininfo",
    "params": []
  }'

Pricing

Usage on Bitcoin Mainnet draws credits at the same rates as on every other network. Your monthly plan sets the price per credit.

Loading the live billing catalog

Bitcoin Mainnet questions

How does GraphOps identify Bitcoin Mainnet?
Bitcoin Mainnet is a mainnet. Its CAIP-2 network ID is bip122:000000000019d6689c085ae165831e93, and RPC endpoints name it mainnet in their path.
What is the GraphOps Bitcoin Mainnet RPC endpoint?
Send HTTPS JSON-RPC requests to https://rpc.graphops.xyz/v1/bitcoin/mainnet. Authenticate with an API key from your organization that includes RPC, in the Authorization header or as a route token at the end of the path.
Does Bitcoin Mainnet RPC support WebSocket?
No. Bitcoin Mainnet RPC accepts JSON-RPC over HTTPS only.
Does GraphOps Bitcoin Mainnet RPC serve archive data?
Yes. Bitcoin Mainnet RPC keeps every block since genesis, so getblock returns any block.

Start building on Bitcoin Mainnet.

Create an organization, choose your monthly credits, then create an API key that includes the services you need.