Skip to main content

The Graph

Access indexed blockchain data through The Graph subgraphs. Query ENS registrations, Uniswap pools, Aave markets, and Lido staking stats.

Full Tutorial

See The Graph Queries Tutorial for comprehensive examples.

Available Subgraphsโ€‹

SubgraphDescriptionNetwork
ensENS domain registrations & transfersHosted Service
uniswapV3Uniswap V3 pools, swaps, liquidityDecentralized
aaveV3Aave V3 lending marketsDecentralized
lidoLido staking submissionsHosted Service
compoundCompound V2 marketsHosted Service

ENS Subgraphโ€‹

EndpointDescriptionPrice
GET /api/graph/ens/registrationsRecent ENS registrations$0.01
GET /api/graph/ens/domain/{name}Domain details$0.01
GET /api/graph/ens/transfersRecent domain transfers$0.01
GET /api/graph/ens/owner/{address}Domains by owner$0.01

Example: Recent Registrationsโ€‹

curl "https://api.web3identity.com/api/graph/ens/registrations?limit=10"
{
"registrations": [
{
"name": "coolname.eth",
"registrant": "0x1234...",
"registrationDate": "2026-02-09T08:00:00.000Z",
"expiryDate": "2027-02-09T08:00:00.000Z"
}
],
"source": "thegraph/ens"
}

Uniswap V3 Subgraphโ€‹

EndpointDescriptionPrice
GET /api/graph/uniswap/poolsTop pools by TVL$0.01
GET /api/graph/uniswap/pool/{address}Pool details$0.01
GET /api/graph/uniswap/swapsRecent swaps$0.01
GET /api/graph/uniswap/statsProtocol-wide stats$0.01

Example: Top Poolsโ€‹

curl "https://api.web3identity.com/api/graph/uniswap/pools?limit=5"
{
"pools": [
{
"address": "0x8ad599c3...",
"pair": "USDC/ETH",
"feeTier": "0.3%",
"tvlUsd": 456789012.34,
"volumeUsd": 12345678901.23
}
],
"source": "thegraph/uniswap-v3"
}

Aave V3 Subgraphโ€‹

EndpointDescriptionPrice
GET /api/graph/aave/marketsLending markets with APY$0.01

Example: Marketsโ€‹

curl "https://api.web3identity.com/api/graph/aave/markets?limit=10"
{
"markets": [
{
"symbol": "WETH",
"supplyApy": 0.0234,
"borrowApy": 0.0456,
"utilization": 0.20
}
],
"source": "thegraph/aave-v3"
}

Lido Subgraphโ€‹

EndpointDescriptionPrice
GET /api/graph/lido/statsStaking stats$0.01

Custom Queriesโ€‹

EndpointDescriptionPrice
POST /api/graph/query/{subgraph}Run custom GraphQL query$0.02
GET /api/graph/subgraphsList available subgraphsFree

Example: Custom Queryโ€‹

curl -X POST https://api.web3identity.com/api/graph/query/ens \
-H "Content-Type: application/json" \
-d '{"query": "{ domains(first: 5) { name owner { id } } }"}'

Query Parametersโ€‹

ParamTypeDefaultMax
limitnumber25100

Data Freshnessโ€‹

  • Decentralized network (Uniswap, Aave): ~1-5 minutes lag
  • Hosted service (ENS, Lido): ~10-30 seconds lag

For real-time data, use RPC endpoints directly.