Owner: Kalki | Ship: Week 3 | Est: 0.5 day | Chain: integra-testnet-1 (EVM 26218) URL: referrals.integralayer.com
On-chain referral system where users generate unique invite links, share them across social channels, and earn 10% of their referee's XP permanently. Referral relationships are recorded on-chain for full transparency and auditability. A competitive leaderboard ranks top inviters, turning power users into ecosystem evangelists. This is the primary viral growth loop for testnet adoption.
- Unique Invite Links — Each wallet gets a short-code referral link tied to their address, usable across all ecosystem dApps
- On-Chain Attribution — Referee-to-referrer mapping stored in contract state, immutable and publicly verifiable
- 10% Passive XP Share — Referrer earns 10% of all XP their referee accumulates across every ecosystem dApp, forever
- Signup Bonus — Both referrer (+50 XP) and referee (+100 XP) receive a one-time bonus on successful registration
- Social Share Buttons — One-click sharing to Twitter and Telegram with pre-filled templates mentioning @IntegraLayer
- Referral Leaderboard — Public ranking of top inviters by invite count and total XP earned from referrals
- Referral Dashboard — Personal stats page showing invite count, XP earned from referrals, and referral tree
- Anti-Abuse Guards — No self-referral, one referrer per address, sybil-resistant claim gating
- Milestone Badges — Achievement badges at 10, 50, and 100 successful referrals
- Ecosystem-Wide Onboarding — Referral link works as the entry point to any dApp in the ecosystem, not just the referral page
- Share Templates — Pre-written copy for Twitter ("I'm exploring the @IntegraLayer testnet and earning XP. Join me and we both get bonus points: [link]") and Telegram
generateLink(referrer)— Creates a unique short-code referral link for the caller's addressregisterReferral(referee, referrer)— Records the referral relationship on-chain (called once on referee signup)claimBonus(referee)— Referee claims signup bonus, which also triggers the referrer's bonusgetReferrer(referee)— Returns the referrer address for a given refereegetReferralCount(referrer)— Returns total successful referral count for an addressgetLeaderboard()— Returns top referrers ranked by invite count or XP earnedgetReferralXP(referrer)— Returns total passive XP accumulated from all referees
- User connects via Web3Auth
- User sees their referral dashboard with unique link, invite count, and XP earned
- User copies their link or clicks one-click share (Twitter/Telegram)
- Friend clicks the link and lands on the ecosystem signup page
- Friend signs up and is attributed to the referrer on-chain
- Both parties receive their one-time XP bonus
- Referrer passively earns 10% of referee's ongoing XP from all ecosystem activity
- User checks the leaderboard to see their ranking among top inviters
- Referrals smart contract with on-chain referee-referrer mapping
- Referral link generation and resolution service
- Referral dashboard page (stats, referral tree, XP breakdown)
- Leaderboard page (ranked by invite count and XP earned)
- Social share buttons with pre-filled Twitter and Telegram templates
- Anti-abuse validation (no self-referral, one referrer per address)
- XP multiplier integration (10% passive share across all ecosystem dApps)
- Milestone badge system (10/50/100 referrals)
- Depends on: Web3Auth (@integra/web3auth-provider), XP system (all ecosystem dApps report XP)
- Used by: All ecosystem dApps (referral link is the universal onboarding entry point)
- Explorer: Integra Explorer (referral registrations visible as on-chain txs)
| Action | Points |
|---|---|
| Referee signup bonus (one-time, for new user) | +100 XP |
| Referrer bonus per successful invite | +50 XP |
| Ongoing passive share of referee's XP | +10% |
| Reach 10 successful referrals (milestone) | +500 XP |
| Metric | Target |
|---|---|
| Unique referral links generated | 5,000+ |
| Successful referral signups | 1,000+ |
| Referral conversion rate (click to signup) | >15% |
| Users with 10+ referrals | 50+ |
| % of new users arriving via referral link | >30% |