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.

game.ts
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

1

Get API Keys

Sign up and create your game project in the dashboard.

~2 min
2

Install SDK

npm install or add via Unity Package Manager.

~1 min
3

Initialize

Call createSDK() with your credentials.

~5 min
4

Show Ads

Replace your ad calls with sdk.ads.showRewardedAd().

~10 min

SDK 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

U

Unity

2021.3+

stable
J

JavaScript

ES2020+

stable
T

TypeScript

4.5+

stable
U

Unreal Engine

5.0+

beta