Examples
QuestParticipants
Getting Started
Credential Advanced
- Overview
- API Credential
- REST Credential
- GraphQL Credential
- Contract Query Credential
GraphQL API
- Overview
- Quest
- Queries
- Examples
- Credential
- Space
Smart Contract
- Introduction
- Contracts
- Audit Reports
- Subgraph
Examples
QuestParticipants
Query campaign participants
Arguments:
Name | Description |
---|---|
id | Campaign hash id. |
pfirst | Query limit. |
pafter | Query offset. |
Request:
query campaignParticipants($id: ID!, $pfirst: Int!, $pafter: String!) {
campaign(id: $id) {
id
numberID
numNFTMinted
participants {
participants(first: $pfirst, after: $pafter) {
list {
address {
username
avatar
address
email
solanaAddress
aptosAddress
seiAddress
discordUserID
}
}
}
participantsCount
}
}
}
Variables:
{
"id": "GCn45UjHXE",
"pfirst": 1,
"pafter": "-1"
}
Response:
{
"data": {
"campaign": {
"id": "GCn45UjHXE",
"numberID": 151178,
"numNFTMinted": 0,
"participants": {
"participants": {
"list": [
{
"address": {
"username": "0xdoxes",
"avatar": "https://source.boringavatars.com/marble/120/blunder8888@gmail.com",
"address": "0x00000000ccd193975907ddb660b4692bb4257f9f",
"email": "",
"solanaAddress": "",
"aptosAddress": "",
"seiAddress": "",
"discordUserID": ""
}
}
]
},
"participantsCount": 234163
}
}
}
}
Was this page helpful?
On this page