Hats v1 Optimism logo

Hats v1 Optimism

9.9K Queries (Past 30D)

9.8K Signal

Updated a year ago

Network

optimism

Subgraph ID

9nmXXk—bxw61q

Deployment ID

QmSCr9—bA3Fw1

Query URL

/subgraphs/id/9nmXXk—bxw61q

9.9K Queries (Past 30D)

9.8K Signal

Updated a year ago

Network
optimism
Subgraph ID
9nmXXk—bxw61q
Deployment ID
QmSCr9—bA3Fw1
Query URL
/subgraphs/id/9nmXXk—bxw61q
Index Status

Query quick start

The production url for querying this Subgraph on the decentralized network.

Query url format

{base_url}

/api

/subgraphs/id/

{subgraph_id}

Base URL
https://gateway.thegraph.com/api
Subgraph id
9nmXXk3ysDVY4sFygWQNQknwiJLCPnrUNzDRw8bxw61q
Query URL
https://gateway.thegraph.com/api/subgraphs/id/9nmXXk3ysDVY4sFygWQNQknwiJLCPnrUNzDRw8bxw61q

bash
curl -X POST \  -H "Content-Type: application/json" \  -H "Authorization: Bearer {api-key}" \  -d '{"query": "{ hats(first: 5) { id prettyId status createdAt } wearers(first: 5) { id currentHats { id } mintEvent { id } burnEvent { id } } }", "operationName": "Subgraphs", "variables": {}}' \  https://gateway.thegraph.com/api/subgraphs/id/9nmXXk3ysDVY4sFygWQNQknwiJLCPnrUNzDRw8bxw61q