API & Integration Reference
GraphQL API, smart contract interfaces, and integration examples.
Need quick copy/paste snippets? See GraphQL Recipes and Integration Snippets.
Networks: Arbitrum One (42161), Celo (42220), Base Sepolia (84532). Contract addresses and schema UIDs are published in
packages/contracts/deployments/*.json. Updated November 2024. GraphQL Playground: https://indexer.hyperindex.xyz/0bf0e0f/v1/graphql (HyperIndex-hosted; seepackages/indexer/README.mdfor auth notes).
GraphQL API
Endpoint: https://indexer.hyperindex.xyz/0bf0e0f/v1/graphql
No authentication required for public data.
Core Queries
Gardens
query AllGardens {
Garden {
id
chainId
name
location
gardeners
operators
createdAt
}
}
query GardenById($id: String!) {
Garden(where: {id: {_eq: $id}}) {
id
name
work: Work {
id
title
approved
}
}
}Work
Actions
Subscriptions
Real-time updates:
Contract Interfaces
GardenToken
ActionRegistry
Contract Addresses
See deployment files:
Integration Examples
Node.js
Python
React (with Urql)
Schema UIDs
Arbitrum One (42161)
Work:
0xb4318a3d228cb57828e9c56d96f88756beb71be540140226b8fc31ca97099f26Approval:
0xe386d0277645e801c701259783b5338314a2d67fdc52dc963da1f27fda40074bAssessment:
0x0027bf6235b41365962ecc3df493a9bfe12160a6c72c7b39f34c6955975b3fa4
Celo (42220)
Work:
0x481c4190bcaf0140d77d1124acd443f51ed78d73fecb6cd4f77265142df0c00aApproval:
0x584054ca6d3ed2d3adaed85fd3e2375d1197cb7e4c9698fec62d7431323f20c6Assessment:
0xcbcd83143911085d2010d921a12ecf53569eb8dc4564b0ddb5d469c03b44d232
Base Sepolia (84532)
Work:
0x481c4190bcaf0140d77d1124acd443f51ed78d73fecb6cd4f77265142df0c00aApproval:
0x584054ca6d3ed2d3adaed85fd3e2375d1197cb7e4c9698fec62d7431323f20c6Assessment:
0xcbcd83143911085d2010d921a12ecf53569eb8dc4564b0ddb5d469c03b44d232
Rate Limits
No limits currently on GraphQL API.
Future: May add reasonable limits for abuse prevention.
Learn More
Last updated