Examples
CredentialHolders
Getting Started
Credential Advanced
- Overview
- API Credential
- REST Credential
- GraphQL Credential
- Contract Query Credential
GraphQL API
- Overview
- Quest
- Credential
- Space
Smart Contract
- Introduction
- Contracts
- Audit Reports
Examples
CredentialHolders
Query credential holders
Arguments:
Name | Description |
---|---|
id | Cred id. |
first | Cred limit. |
after | Cred offset. |
Request:
query CredItems($id: ID!, $first: Int, $after: String) {
credential(id: $id) {
credentialItems(first: $first, after: $after) {
totalCount
values{
address
spaceUsers{follow, points, participations}
gitcoinPassport{score, lastScoreTimestamp}
campaignReferral{count}
walletBalance{balance}
allow
multiDimension{value}
survey{answers}
quiz{allow, correct}
galxePassport{eligible, lastSelfieTimestamp}
}
pageInfo {
endCursor
hasNextPage
}
list
}
}
}
Variables
{
"id": "473720589215887360",
"first": 3,
"after": "",
"searchString": ""
}
Headers
{"access-token": "your-access-token"}
Response
{
"data": {
"credential": {
"credentialItems": {
"totalCount": 3,
"values": [
{
"address": "0x1d030d76f5a6505a64c032cf6b350c379d52ae60",
"spaceUsers": null,
"gitcoinPassport": null,
"campaignReferral": null,
"walletBalance": null,
"allow": true,
"multiDimension": null,
"survey": null,
"quiz": null,
"galxePassport": null
},
{
"address": "0x38da91e338386dd117d5191ea48e2c6ef14f90f1",
"spaceUsers": null,
"gitcoinPassport": null,
"campaignReferral": null,
"walletBalance": null,
"allow": true,
"multiDimension": null,
"survey": null,
"quiz": null,
"galxePassport": null
},
{
"address": "0xd9fc2cb3d0cdea6c0e2419df81d76216775fa0a5",
"spaceUsers": null,
"gitcoinPassport": null,
"campaignReferral": null,
"walletBalance": null,
"allow": true,
"multiDimension": null,
"survey": null,
"quiz": null,
"galxePassport": null
}
],
"pageInfo": {
"endCursor": "",
"hasNextPage": false
},
"list": [
"0x1d030d76f5a6505a64c032cf6b350c379d52ae60",
"0x38da91e338386dd117d5191ea48e2c6ef14f90f1",
"0xd9fc2cb3d0cdea6c0e2419df81d76216775fa0a5"
]
}
}
}
}
On this page