Onchain data on open standards

Read chain state, query indexed data, and stream blocks with GraphOps

Every read on its open standard
  1. #22,984,172
  2. #22,984,173
  3. #22,984,174
  4. #22,984,175
  5. #22,984,176
RPC JSON-RPC Subgraphs GraphQL Substreams gRPC
Pool state
ETH / USDC +0.01% 3,241.18 USDC 5,721 ETH 18.6M USDC
ENS registrations
#22,984,175
  1. harborlabs.eth
  2. 0427.eth
  3. lumen-studio.eth
  4. cobaltvault.eth
  5. northwind.eth
  6. 7720.eth
  7. quietmesa.eth
  8. atlas-node.eth
Your database
#22,984,176 44 txs 604 transfers 16 blocks

Your app needs live chain state, its own onchain state in a schema you define, and often every block in its own database. Starting today, GraphOps serves all three, self-serve, each over its open standard:

  • GraphOps RPC for balances, contract state and transactions straight from the chain, with no nodes to run, over JSON-RPC. Explore RPC
  • GraphOps Subgraphs for your app's onchain state in your own schema, over Subgraph GraphQL, or one of 16,000+ Subgraphs on The Graph Network. Explore Subgraphs
  • GraphOps Substreams for every block in your own database, starting from a published package, over Substreams gRPC. Explore Substreams

This is also the launch of The Graph Network's first independent gateway. GraphOps Subgraphs gives every team that queries The Graph another way in, run by one of the network's top Indexers. Since 2022 we've contributed to open data frameworks and standards, with a longstanding history as a core contributor to The Graph and its indexing software. The same team that contributes to that software runs these services.

Because each service speaks an open standard, you start with the tools you already use: the viem or ethers client in your app, any Subgraph published on The Graph Network, standard Substreams packages, and the Substreams CLI.

Open standards
What you already have
viem · go-ethereum
Subgraph on The Graph Network{ swaps(first: 3) }
Substreams package · CLIethereum-common.spkgcursor #21,804,
Open standard
JSON-RPCRequest · response
GraphQLQuery · indexed entities
gRPCStream · every block
GraphOps
RPCanswers each call
Subgraphsindexed #21,804,
Substreamssends blocks in order
Create account (opens in a new tab) Read the quickstart(opens in a new tab)

Read chain state with GraphOps RPC

GraphOps RPC gives your application live chain state without running your own nodes: read balances and contract state, submit signed transactions, and react to each new block. Teams use it to power wallets and Web3 products, track treasury balances and movements, and read asset supply at an exact block.

Send standard JSON-RPC to https://rpc.graphops.xyz/v1/evm/<chainId>, with your API key as a Bearer token:

Example

Make your first RPC request

Read the latest Ethereum block number with curl or a TypeScript, Go, Rust, or Python client.

Read the guide(opens in a new tab)

Prerequisites

  1. Set GRAPHOPS_API_KEY to your GraphOps API key.

CLI · curl

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

Output

{  "jsonrpc": "2.0",JSON-RPC version  "id": 1,Matches the id you sent  "result": "0x1934014"Latest block in decimal: 26,427,412}

EVM networks are served over HTTPS and WebSocket, including subscriptions for new heads and logs, and Bitcoin over HTTPS. GraphOps RPC is served from the same archive infrastructure we run as an Indexer on The Graph Network, and archive and tracing access are listed per network on the networks pages.

Example

Read contract state

Use eth_call to read USDC balanceOf at an explicit Ethereum mainnet block.

Read the guide(opens in a new tab)

Prerequisites

  1. Set GRAPHOPS_API_KEY to your GraphOps API key.

CLI · curl

# data is the balanceOf(address) selector 0x70a08231 followed by the holder address
# left-padded to 32 bytes. 0x112a880 is block 18,000,000.
curl --fail-with-body --silent --show-error "https://rpc.graphops.xyz/v1/evm/1" \
  -H "Authorization: Bearer ${GRAPHOPS_API_KEY}" \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_call",
    "params": [
      {
        "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "data": "0x70a08231000000000000000000000000b4e16d0168e52d35cacd2c6185b44281ec28c9dc"
      },
      "0x112a880"
    ]
  }'

Output

{  "jsonrpc": "2.0",  "id": 1,Matches the id you sent  "result": "0x0000000000000000000000000000000000000000000000000000197016bc99ff"Token amount: 27,969,208,490,495 base units, 27,969,208.490495 USDC}

Because the same key queries Subgraphs, you can read contract state at the exact block a Subgraph answered from, so indexed entities and live state describe one block. See Match RPC reads to Subgraph data(opens in a new tab).

Query indexed data with GraphOps Subgraphs

A Subgraph turns contract events into your application's state, in a schema you define: positions, transfers, pools, and holders, indexed and related to each other and queried with GraphQL, with no indexing backend of your own to build. Use it for application feeds and APIs, protocol dashboards and analytics, and holder views of an asset.

16,000+ Subgraphs on The Graph Network already index the protocols your app reads, with data you can query right away over GraphQL, by Deployment CID or Graph Network Subgraph ID.

Example

Paginate results

Page through large Subgraph entity sets with stable ordering and bounded requests.

Read the guide(opens in a new tab)

Prerequisites

  1. Set GRAPHOPS_API_KEY to your GraphOps API key.

  2. Replace <ALIAS> with your Endpoint Alias.

CLI · curl

# Start below every id. For the next page, set lastId to the last id in this response.
curl --fail-with-body --silent --show-error "https://subgraphs.graphops.xyz/v1/alias/<ALIAS>" \
  -H "Authorization: Bearer ${GRAPHOPS_API_KEY}" \
  -H "Content-Type: application/json" \
  --data '{
    "query": "query PoolsPage($first: Int!, $lastId: ID!) { pools(first: $first, where: { id_gt: $lastId }, orderBy: id, orderDirection: asc) { id token0 { symbol } token1 { symbol } } _meta { block { number hash } } }",
    "variables": { "first": 10, "lastId": "0x0000000000000000000000000000000000000000" },
    "operationName": "PoolsPage"
  }'

Output

{  "data": {    "pools": [Up to $first rows, ordered by id      {        "id": "0x000024feb293b6c6c3a80a95f1f830a8746400b9",        "token0": {          "symbol": "TRUMP"        },        "token1": {          "symbol": "WETH"        }      },      {        "id": "0x0000d36ab86d213c14d93cd5ae78615a20596505",Last id: your next $lastId        "token0": {          "symbol": "RALPH"        },        "token1": {          "symbol": "WETH"        }      },      {        "id": "0x00013bffe4c38c1372a450fac78b01cb4f554781",        "token0": {          "symbol": "Pectra"        },        "token1": {          "symbol": "WETH"        }      },      {        "id": "0x0001fcbba8eb491c3ccfeddc5a5caba1a98c4c28",        "token0": {          "symbol": "BCZ"        },        "token1": {          "symbol": "WETH"        }      },      {        "id": "0x00024b66a38a676c0eae59126c1367ad141afa79",        "token0": {          "symbol": "WETH"        },        "token1": {          "symbol": "TI"        }      },      {        "id": "0x0002e63328169d7feea121f1e32e4f620abf0352",        "token0": {          "symbol": "wNXM"        },        "token1": {          "symbol": "ICHI"        }      },      {        "id": "0x0003c9d75e102b8a9fe77280ca410e9135beb150",        "token0": {          "symbol": "TRANCHE-bWBTC-A"        },        "token1": {          "symbol": "USDT"        }      },      {        "id": "0x0003e7d8d22d0e8e53d56885069fc8a254f0431f",        "token0": {          "symbol": "RLP"        },        "token1": {          "symbol": "USDC"        }      },      {        "id": "0x0004cd8474e882278e32e584699090be496f410e",        "token0": {          "symbol": "ZERO"        },        "token1": {          "symbol": "USDC"        }      },      {        "id": "0x0005079292756443f2e711570f8ab4e1951d4f97",        "token0": {          "symbol": "EDG"        },        "token1": {          "symbol": "WETH"        }      }    ],    "_meta": {      "block": {        "number": 26427422,Log with each page        "hash": "0x2b2e7dba584f940514fb8d7744402f46a2af1c1154458932c771b1eb7df2d718"      }    }  }}

The hard parts are capacity and upgrades. A Subgraph on The Graph Network waits for Indexers to pick it up, with no capacity reserved for your app. And every new version gets a new Deployment CID and starts with no data, so an app pinned to a CID needs a release to move, and an app that follows the newest version can query it before it has indexed. GraphOps adds two things the standard does not give you.

Endpoint Aliases give your app one URL, and you choose when it moves. Pin a Deployment CID, or follow a Graph Network Subgraph ID with Latest available version, which moves to a new version only once network Indexers serve it and keeps serving the previous one until then. Aliases carry no charge of their own. A policy that moves on its own can deliver the owner's breaking schema changes, so pin when your queries need a fixed schema.

Endpoint Alias
Endpoint Alias/v1/alias/dex-poolsLatest available versionServing CIDQm…a1f4Qm…7c2e
Graph Network Subgraph ID5zvR…Kq2
v2Qm…a1f4Served by Indexers
v3Qm…7c2ePublishedServed by IndexersIndexers

A Managed Subgraph begins indexing immediately and has elastic query capacity backed by Indexers on The Graph Network. GraphOps runs both a gateway to The Graph Network and an Indexer on it, so your deployment never waits on another Indexer while queries stay backed by the full network. A Managed Subgraph can also follow another team's Subgraph ID, and each version they publish reaches your app once it's ready.

Your own queries are free. Queries your organization sends to its own Managed Subgraphs cost no credits within your rate limits, on a monthly plan (other organizations' queries are billed as usual). See what GraphOps guarantees(opens in a new tab) for exact scope.

Upgrades wait until they're ready. On a Managed Subgraph, a new version indexes alongside the one your app uses, breaking schema changes are flagged, and it goes live when you choose, once it's ready. Point your app at an Endpoint Alias and it keeps one URL, pointing to a Managed Subgraph's live version, a pinned deployment, or the latest version The Graph Network's Indexers serve. Managed indexing runs on a monthly plan and draws on its credits, for both versions during an upgrade, and a small Managed Subgraph fits within the smallest plan.

Managed Subgraph
Production/v1/alias/positionsServes Current version
Staging/v1/alias/positions-stagingServes Next versionCurrent version
CurrentQm…a1f4Qm…7c2eAvailableSynced to #21,480,512#21,480,513#21,480,514#21,480,515#21,480,516#21,480,517#21,480,518#21,480,519#21,480,520#21,480,521
Elastic capacity
Queries48,21048,35048,71049,43050,51051,81053,11054,19054,91055,270FreeIndexing charges accrue hourly
NextQm…7c2eNot stagedSyncingReady to promote

The Subgraph setup guide(opens in a new tab) compares every option, with what each one waits for and costs.

Stream every block with GraphOps Substreams

GraphOps Substreams puts onchain data in your own database, beside the rest of your data: every block, or only the events you select, in order, from a historical backfill straight into the live chain. Use it to load a warehouse for analytics, keep a traceable record for compliance review, or reconcile onchain movements with your books.

Start from a package that already exists. Substreams Discover in the console lists popular packages for your network, ranked by downloads, and its explorer shows each package's modules and output types before you run it. See Discover packages(opens in a new tab).

Point the Substreams CLI or your own gRPC client at https://<CHAIN_ID>.evm.substreams.graphops.xyz, where the hostname starts with the network's chain ID, and run a standard package: a historical backfill that continues as a live stream into your own database. The protocol sends a cursor with every block of output and an undo signal when a reorg drops blocks. Your consumer commits each cursor with its data and rewinds on an undo signal, keeping your consumer portable across compliant providers. The cursor guide(opens in a new tab) shows the commit order.

Substreams cursors
Ethereum
  1. #1,2010x4e1a…
  2. #1,2020x7b3c…
  3. #1,2030x9c07…#1,2030x31d5…
  4. #1,2040xa86f…
Substreamsethereum-common@v0.4.0
sf.ethereum.type.v2.Blocksourceindex_eventsindexfiltered_eventsmapevt_addr:0xa0b8…eb48
evt_sig:0xddf2…b3ef
SendsBlockScopedDataoutput + cursorBlockUndoSignallast valid #1,202
Your consumer
BEGIN
BlockHashTransfers
#1,2010x4e1a…14
#1,2020x7b3c…9
#1,2030x9c07…21
#1,2030x31d5…18
#1,2040xa86f…11
Cursornone#1,201a7Hq…3kQ#1,202a7Hq…9vR#1,203a7Hq…Xc2#1,203a7Hq…mP4#1,204a7Hq…Lw8
COMMIT
Example

Resume with cursors

Persist cursors and resume Substreams consumers after disconnects.

Read the guide(opens in a new tab)

Prerequisites

  1. Install the Substreams CLI.

  2. Set GRAPHOPS_API_KEY to your GraphOps API key.

  3. Replace <LAST_COMMITTED_CURSOR> with the cursor of the last block you committed.

CLI · Substreams CLI

# The CLI sends SUBSTREAMS_API_KEY to GraphOps in the x-api-key header.
export SUBSTREAMS_API_KEY="${GRAPHOPS_API_KEY}"

# --cursor resumes right after the block where that cursor was committed.
substreams run \
  -e "https://1.evm.substreams.graphops.xyz" \
  "https://spkg.io/v1/packages/ethereum-common/v0.4.0" \
  "filtered_events" \
  --params "filtered_events=evt_addr:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 && evt_sig:0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" \
  --start-block 18000002 \
  --stop-block 18000008 \
  --cursor "<LAST_COMMITTED_CURSOR>" \
  -o jsonl

Output

{  "@module": "filtered_events",  "@block": 18000003,Historical block: 18,000,003  "@type": "sf.substreams.ethereum.v1.Events",  "@data": {    "clock": {      "id": "90c06a9fad66de217ce5862a92a2d45a8f42f9abf8ec17d5bfb85ffdc7836ca4",      "number": "18000003",      "timestamp": "2023-08-26T16:22:11Z"    },    "events": [      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",Ethereum mainnet USDC contract; hexadecimal in CLI output, base64 in Protobuf JSON          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",ERC-20 Transfer signature            "0x000000000000000000000000180cd4303582d348a54fcb0436d5665f082a23d1",Sender address, left-padded to 32 bytes            "0x000000000000000000000000a9d1e08c7793af67e9d92fe308d5697fb81d3e43"Recipient address, left-padded to 32 bytes          ],          "data": "0x00000000000000000000000000000000000000000000000000000000aad0a340",Transfer amount: 2,865,800,000 base units, 2,865.8 USDC          "blockIndex": 222,          "ordinal": "4219"        },        "txHash": "05c9c59145387faa91370e56d717d42856bd20f8f19306814d5b7afbe837efe3"Transaction containing this log      },      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",            "0x0000000000000000000000001c727a55ea3c11b0ab7d3a361fe0f3c47ce6de5d",            "0x000000000000000000000000c3dcc088aef4373e665b00fc8be45a4b6a4b24a6"          ],          "data": "0x000000000000000000000000000000000000000000000000000000000686bcda",          "blockIndex": 230,          "ordinal": "4543"        },        "txHash": "eb8505dd3dc2964c1b43ed40371fb9c907b751ccb9294b99db032270889edc42"      }    ]  }}{  "@module": "filtered_events",  "@block": 18000004,  "@type": "sf.substreams.ethereum.v1.Events",  "@data": {    "clock": {      "id": "7f7889c3686d7f560dd690aeb2a10b49e3a76844543cf78cc0dfe4687e2985d2",      "number": "18000004",      "timestamp": "2023-08-26T16:22:23Z"    },    "events": [      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",            "0x0000000000000000000000000000000000000000000000000000000000000000",            "0x00000000000000000000000043954785980c50768373dc1dafd7ba3a2052036f"          ],          "data": "0x000000000000000000000000000000000000000000000000000000e8d433aa6e",          "index": 1,          "blockIndex": 191,          "ordinal": "3060"        },        "txHash": "b2c1d8c8e7989adab51dafdc9be24fd05243342b8d08828c4325662de629c690"      }    ]  }}{  "@module": "filtered_events",  "@block": 18000005,  "@type": "sf.substreams.ethereum.v1.Events",  "@data": {    "clock": {      "id": "127c6b9794874d7011770b3aa2a0a640e1db201c2d677d01b2b3b19e7ad427c7",      "number": "18000005",      "timestamp": "2023-08-26T16:22:35Z"    },    "events": [      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",            "0x000000000000000000000000c880d8be4e94f644f1daa7d3558b50ff5a1c2db7",            "0x000000000000000000000000ae2d4617c862309a3d75a0ffb358c7a5009c673f"          ],          "data": "0x0000000000000000000000000000000000000000000000000000002e90edd000",          "blockIndex": 64,          "ordinal": "1110"        },        "txHash": "1691b8e89e13f483c549d9b61efbc54ecc54015b8186726911c8458f0993e13d"      },      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",            "0x000000000000000000000000b86fc5e985facdcae6034beefc6cbdcd8bbd8cb4",            "0x00000000000000000000000027f713adefc708469d826ab8f5b1e4672f1a070e"          ],          "data": "0x0000000000000000000000000000000000000000000000000000000059682f00",          "blockIndex": 203,          "ordinal": "3669"        },        "txHash": "440106b494b7eb657d19e5f82a164ce4cc62e5252058fab5fb4ee6b92600543c"      }    ]  }}{  "@module": "filtered_events",  "@block": 18000006,  "@type": "sf.substreams.ethereum.v1.Events",  "@data": {    "clock": {      "id": "ed05b59286d4f2db801e78a23ce4584d869d857b70b2758822844427caa55a85",      "number": "18000006",      "timestamp": "2023-08-26T16:22:47Z"    }  }}{  "@module": "filtered_events",  "@block": 18000007,  "@type": "sf.substreams.ethereum.v1.Events",  "@data": {    "clock": {      "id": "db63e26b655ad31d60b2173c02127180ed46b28506f785a2682e058ca61afdc1",      "number": "18000007",      "timestamp": "2023-08-26T16:22:59Z"    },    "events": [      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",            "0x000000000000000000000000b4eae88d1643e172518dde0ef213c20628798c65",            "0x00000000000000000000000038c5a4f22e2e290ba9bbb9e3d9aaf8582f79f4d1"          ],          "data": "0x0000000000000000000000000000000000000000000000000000000006b78840",          "blockIndex": 94,          "ordinal": "1448"        },        "txHash": "21d8e836f79606db39fcd51f7e563ea9c12cfb7a2bb3e36f23f4eb89b93045ea"      },      {        "log": {          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",          "topics": [            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",            "0x000000000000000000000000579752cff8fee7af09446b2133ee2f9ff10c4fbf",            "0x0000000000000000000000001715a3e4a142d8b698131108995174f37aeba10d"          ],          "data": "0x000000000000000000000000000000000000000000000000000000001d0221cd",          "blockIndex": 179,          "ordinal": "3398"        },        "txHash": "d78a180e669534a650d842f13d032610e29bf4a7731fb90a6dff73d752ac049c"      }    ]  }}

What it costs

There is one monthly plan, sized in steps of credits, and the price per credit falls with each step you add. Every service and every API key in your organization draws on the same balance. No plan is required: you can top up credits and pay as you go instead, and the estimator sizes a plan from the usage you expect.

Loading live prices

Where to start

Every service has a quickstart, and runnable examples in the docs come as projects you can download as an archive. For coding agents, start with Use GraphOps with AI agents(opens in a new tab); every page is also available as Markdown.

If you start from a problem rather than a service, each solution page works through one case step by step and shows which read each step makes.

Questions about annual terms, invoiced payment, or larger volumes go through Discuss your project. Service status is at status.graphops.xyz(opens in a new tab), and support is a chat inside the platform.

Create account (opens in a new tab) Read the quickstart(opens in a new tab)

Onchain data in the shape your app needs.