Subgraph API
Subgraph API
Section titled “Subgraph API”ENSNode exposes a Subgraph-Compatible GraphQL endpoint at /subgraph.
For details on subgraph compatibility, see the Subgraph Compatibility documentation.
GraphiQL Playground
Section titled “GraphiQL Playground”To explore the schema and run queries, use the GraphiQL Playground below.
GraphQL Examples
Section titled “GraphQL Examples”Fetch data about the three most recently-created domains.
{ 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" } ] }}