Query user credentials and check eligibility for verification requirements
1
- User has the credential0
- User does not have the credentialField | Type | Description |
---|---|---|
id | ID! | Credential’s unique identifier |
name | String! | Human-readable credential name |
credType | CredType! | Credential platform/type |
credSource | CredSource! | Verification method |
eligible(address, campaignId) | Int | User eligibility check (0 or 1) |
syncStatus | SyncStatus! | Data synchronization status |
itemCount | Int | Total number of credential holders |
Type | Description |
---|---|
TWITTER | Twitter account verification |
DISCORD | Discord membership verification |
EVM_ADDRESS | Ethereum-compatible addresses |
SOLANA_ADDRESS | Solana wallet addresses |
GITHUB | GitHub account verification |
EMAIL | Email address verification |
Source | Description |
---|---|
TWITTER_FOLLOW | Twitter follow verification |
DISCORD_MEMBER | Discord server membership |
CONTRACT_NFT_HOLDER | NFT ownership verification |
WALLET_BALANCE | Token balance requirements |
QUIZ | Quiz completion verification |
API | Custom API verification |
Status | Description |
---|---|
SYNCED | Data is current and reliable |
SYNCING | Data is being updated, may be stale |
campaignId
parameter:
syncStatus
is SYNCED
before relying on eligibility resultscampaignId
parameter for quest-specific verificationsError | Cause | Solution |
---|---|---|
Credential not found | Invalid credential ID | Verify credential ID exists |
Address not provided | Missing address parameter | Include user address in query |
Rate limit exceeded | Too many requests | Implement retry logic |
Invalid access token | Bad/expired token | Regenerate access token |