Skip to content

Commit

Permalink
Update subgraph links, add helper message
Browse files Browse the repository at this point in the history
  • Loading branch information
gskril committed May 16, 2024
1 parent 4492d16 commit dc7c4e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/web/enumerate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The [ENS subgraph](/web/subgraph) indexes all events from relevant smart contrac

ENSjs makes it easy to run common queries on the subgraph with strong type safety. Docs can be found [here](https://github.com/ensdomains/ensjs-v3/tree/main/docs/subgraph).

```graphql {{ title: 'GraphQL', language: 'gql', variant: 'gql', link: "https://thegraph.com/hosted-service/subgraph/ensdomains/ens" }}
```graphql {{ title: 'GraphQL', language: 'gql', variant: 'gql', link: "https://thegraph.com/explorer/subgraphs/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH?chain=arbitrum-one" }}
{
domains(where: { owner: "0x225f137127d9067788314bc7fcc1f36746a3c3b5" }) {
name
Expand Down
25 changes: 16 additions & 9 deletions docs/web/subgraph.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { WIP } from '@/components/wip/WIP';
import { WIP } from '@/components/wip/WIP'
import { Helper } from '@/components/Helper'

{/** @type {import('@/lib/mdxPageProps').MdxMetaProps} */}
{/* * @type {import('@/lib/mdxPageProps').MdxMetaProps} */}
export const meta = {
description: '',
emoji: '⚙️',
contributors: [
'lucemans'
]
description: '',
emoji: '⚙️',
contributors: [
'lucemans'
]
};

# Subgraph
Expand All @@ -16,7 +17,13 @@ This is a page covering the graph's ENS subgraph.
## The Graph

The Graph is a protocol for indexing and querying data from blockchains. There are multiple subgraphs that you can use to query information about ENS names.
These subgraphs are available for [mainnet](https://api.thegraph.com/subgraphs/name/ensdomains/ens) and testnets like [goerli](https://api.studio.thegraph.com/query/49574/ensgoerli/version/latest), [sepolia](https://api.studio.thegraph.com/query/49574/enssepolia/version/latest) and [holesky](https://api.studio.thegraph.com/query/49574/ensholesky/version/latest).
These subgraphs are available for [mainnet](https://api.thegraph.com/subgraphs/name/ensdomains/ens), [sepolia](https://api.studio.thegraph.com/query/49574/enssepolia/version/latest) and [holesky](https://api.studio.thegraph.com/query/49574/ensholesky/version/latest).

<Helper type="warning">
Developers are welcome to use our rate limited API endpoints above for
testing, but it is highly encouraged to sign up for a free account with
TheGraph to get your own API key.
</Helper>

## GraphQL Schema

Expand All @@ -29,7 +36,7 @@ One of such use-cases is querying which NFT names are owned by a specific addres

## Example Queries

One can explore the following examples interactively via the [Graph Explorer Playground](https://thegraph.com/hosted-service/subgraph/ensdomains/ens)
One can explore the following examples interactively via the [Graph Explorer Playground](https://thegraph.com/explorer/subgraphs/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH?view=Playground&chain=arbitrum-one)

### Getting a list of names owned by an account

Expand Down

0 comments on commit dc7c4e1

Please sign in to comment.