Network
avalanche
Subgraph ID
8YMfga—gF7RVi
Deployment ID
QmWC4Z—ikc6V8
Query URL
/subgraphs/id/8YMfga—gF7RVi
1.2M Queries (Past 30D)
5.7K Signal
Updated a month ago
- Network
- Subgraph ID
- Deployment ID
- Query URL
- Index Status
xxxxxxxxxx
{
drawTokens(first: 5) {
id
user
ticketId
tokenId
}
drawHistories(first: 5) {
id
drawToken {
id
}
blockNumber
blockTimestamp
}
}
1
x
Query quick start
The production url for querying this Subgraph on the decentralized network.
Query url format
{base_url}
/api
/subgraphs/id/
{subgraph_id}
- Api key
- Base URL
- Subgraph id
Query URL
https://gateway.thegraph.com/api/subgraphs/id/8YMfgaB9awcx7XYsSyq2r7NMHAWNy3YXZLUQZqgF7RVi
bash
curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer {api-key}" \ -d '{"query": "{ drawTokens(first: 5) { id user ticketId tokenId } drawHistories(first: 5) { id drawToken { id } blockNumber blockTimestamp } }", "operationName": "Subgraphs", "variables": {}}' \ https://gateway.thegraph.com/api/subgraphs/id/8YMfgaB9awcx7XYsSyq2r7NMHAWNy3YXZLUQZqgF7RVi