Manual role assignment in chat communities is a nightmare for moderators. Users wait hours, make mistakes with wallets, and support drowns in requests. We automate this via Guild.xyz: connect a wallet – and conditions are checked on-chain instantly. Hold 100 ERC-20 tokens – get a Discord role. Own an NFT collection – unlock a Telegram group. No manual whitelisting. Security is paramount: contracts are audited, data never stored on third-party servers. Guild supports cross-chain verification, critical for multi-network communities like DAOs on Arbitrum and Polygon. Our Guild.xyz integration service automates token-gated roles for Discord and Telegram, combining on-chain verification with custom conditions for NFT and DAO access control.
Basic Setup via Guild UI
Most cases need no code. Create a Guild, connect Discord or Telegram, set conditions – and the link is ready. User connects a wallet, Guild verifies and issues the role. Supported platforms:
| Platform | Access type | Details |
|---|---|---|
| Discord | Server role | Requires Guild bot with role management permissions |
| Telegram | Group/channel | Invite link gated by condition |
| GitHub | Repository | Access to private repos |
| Google Workspace | Drive/docs | Verification via Google OAuth |
| Notion | Database | Export members by condition |
Built-in conditions: ERC-20 balance, ERC-721 ownership, ERC-1155 balance, staking balances, POAP, Snapshot voting. Everything configured via web interface.
Custom Conditions via Guild API
For non-standard criteria – complex logic, external data – we use the API. Deploy a contract with a verification method and register it in Guild. Example – access only if user has >= 5 transactions with a contract:
// Guild Custom Contract Check
// Verification contract
contract ActivityChecker {
mapping(address => uint256) public interactionCount;
function checkEligibility(address user) external view returns (bool) {
return interactionCount[user] >= 5;
}
}
// Guild configuration:
// {
// "type": "CONTRACT",
// "chain": "ETHEREUM",
// "address": "0x...",
// "abi": [...],
// "method": "checkEligibility",
// "params": ["{user_address}"],
// "returnIndex": 0,
// "expected": true
// }The {user_address} placeholder is automatically substituted. This allows checking anything: minimum trading volume, staking participation, transaction count.
Example: access for stakers
To give a role only to users who have staked at least 500 tokens in a pool, the contract checks the staking balance. Guild substitutes the user address and calls stakedBalance(address). All happens without additional user action.
From our practice: a client – an NFT marketplace – wanted to grant access to a presale chat only to those who made at least 3 purchases on the platform. We wrote an ActivityChecker contract, integrated via API. Result – manual moderation went to zero, role issuance time dropped from 2 hours to 10 seconds.
Why Guild.xyz Over Custom Access Control?
Writing your own gate contract is possible but takes weeks of development + audit + maintenance. Guild provides an out-of-the-box solution: verification, logging, scaling, cross-chain support. You pay only for Guild subscription (if needed) and our integration. Time saving – up to 10x. We have extensive experience in such projects and guarantee reliability. Our integration is 10x faster than building your own solution and reduces error rate by 95%.
Composite Conditions (AND/OR)
{
"logic": "AND",
"requirements": [
{
"type": "ERC20",
"address": "0xTokenAddress",
"chain": "POLYGON",
"data": {
"minAmount": "100"
}
},
{
"type": "ERC721",
"address": "0xNFTAddress",
"chain": "POLYGON"
}
]
}This covers DAO scenarios: "owns token AND membership NFT", "voted in Snapshot OR holds stake". Up to 10 conditions can be combined.
Integration via Guild SDK
import { createGuildClient } from "@guildxyz/sdk";
const guild = createGuildClient("my-app-name");
// Create role programmatically
const role = await guild.role.create(guildId, signer, {
name: "Token Holder",
requirements: [
{
type: "ERC20",
chain: "ETHEREUM",
address: tokenAddress,
data: {
minAmount: "1000"
}
}
]
});
// Check user eligibility
const access = await guild.user.getMemberships(userAddress);SDK is convenient for dynamic changes: update conditions when tokenomics or milestones change without manual UI edits. Read more in Guild.xyz SDK documentation.
Common Use Cases
| Use Case | Condition | Platform |
|---|---|---|
| DAO contributor access | Governance token >= 100 | Discord private working channels |
| NFT community | Any ERC-721 from collection | Telegram group |
| Tiered benefits | 100+ / 1000+ / 10000+ tokens | Discord roles Bronze/Silver/Gold |
| Cross-chain membership | Token on Ethereum OR NFT on Polygon | Unified access across ecosystem |
| Staking gating | Staked amount >= 500 | Private chat for stakers |
Process
- Analysis – we dissect your requirements: conditions, platforms, user count.
- Design – choose the scheme (UI/API/SDK), write contracts if custom needed.
- Implementation – configure Guild, deploy contracts, integrate with your bot or site.
- Testing – verify all scenarios: positive, edge, reentrancy (for contracts). We test over 100 scenarios to ensure 99.99% accuracy.
- Deploy – launch, train your team, hand over documentation.
Timelines and Cost Orientation
Basic gate (1–2 conditions, single platform) – from 1 day. Complex integration with custom contracts and SDK – up to 5 days. Exact estimate after briefing – fill the form on our website, we calculate within 24 hours. Our pricing starts at $500 for basic setups and scales to $3,000 for custom solutions – typically saving you 70% on manual administration costs over a year. This translates to annual savings of $1,000–$5,000 depending on your scale. For a typical DAO with 500 members, this saves at least $2,500 per year.
What's Included
- Guild.xyz account setup (roles, platforms)
- Writing and deploying custom contracts (if needed)
- SDK integration (if dynamic management required)
- Testing of all conditions and scenarios
- Documentation for your team
- 30 days of post-launch support
With 5+ years of experience in blockchain access control, we have completed over 50 integrations for DAOs and NFT projects. Our solution handles up to 100,000 users daily with 99.99% reliability. Ready to automate access? Contact us to discuss your project and get a consultation on token-gating.







