For Developers
Add cross-game progression
in under an hour.
Our SDK uses familiar patterns no blockchain expertise needed. Your players earn XP from ads, and it just works across every integrated game.
import { createSDK } from '@xp-sdk/core';
const sdk = await createSDK({
gameId: 'your-game-id',
apiKey: 'xp_live_...'
});
// Show rewarded ad
const receipt = await sdk.ads.showRewardedAd({
placement: 'level_complete'
});
// XP auto-minted! Check balance:
const balance = await sdk.profile.getBalances();
console.log('Player XP:', balance.xp);Integration Steps
Get API Keys
Sign up and create your game project in the dashboard.
~2 minInstall SDK
npm install or add via Unity Package Manager.
~1 minInitialize
Call createSDK() with your credentials.
~5 minShow Ads
Replace your ad calls with sdk.ads.showRewardedAd().
~10 minSDK Features
Ad Mediation
Unified API for AdMob, Unity Ads, IronSource. Auto-verification and XP minting.
Authentication
Silent wallet creation via Immutable Passport. No popups, no seed phrases.
Rewards
Gasless XP claiming. Verified on-chain with instant balance updates.
Inventory
Cross-game items and cosmetics. Lazy minting reduces gas costs.
Leaderboards
Global rankings across all games. Anti-cheat validation built in.
Analytics
Real-time dashboards. Track ad performance, XP flow, and player retention.
Platform Support
Unity
2021.3+
stableJavaScript
ES2020+
stableTypeScript
4.5+
stableUnreal Engine
5.0+
beta