Using ENSNode's API
ENSNode exposes two GraphQL endpoints:
/ponder
— uses a Ponder-native GraphQL schema/subgraph
— uses a subgraph-compatible GraphQL schema
For details on subgraph compatibility, see the Subgraph Compatibility documentation.
ENSNode also exposes Ponder’s @ponder/client
API endpoint at /sql/*
.
The @ponder/client
package provides an SQL client for querying a Ponder app over HTTP, with end-to-end type inference and live updates. It’s an alternative to the GraphQL API, suitable for client applications. Learn about how this is secured.
GraphiQL Playground
Section titled “GraphiQL Playground”To observe the full schema and play with each GraphQL API, use the provided GraphiQL Playground for each.
GraphQL Examples
Section titled “GraphQL Examples”Fetch data about the three most recently-created domains.
Ponder-native API (/ponder
)
Section titled “Ponder-native API (/ponder)”{ domains(orderBy: "createdAt", orderDirection: "desc", limit: 3) { items { name expiryDate } }}
{ "data": { "domains": { "items": [ { "name": "ensanguo.eth", "expiryDate": "1758170255" }, { "name": "fiffer.eth", "expiryDate": "2041994243" }, { "name": "rifaisicilia.eth", "expiryDate": "1758170039" } ] } }}
Subgraph-compatible API (/subgraph
)
Section titled “Subgraph-compatible API (/subgraph)”{ domains(orderBy: createdAt, orderDirection: desc, first: 3) { name expiryDate }}
{ "data": { "domains": [ { "name": "ensanguo.eth", "expiryDate": "1758170255" }, { "name": "fiffer.eth", "expiryDate": "2041994243" }, { "name": "rifaisicilia.eth", "expiryDate": "1758170039" } ] }}