// SDK Reference
SDK REFERENCE
Everything you need to integrate Gami quests, XP, and rewards into your application. Full API reference, guides, and examples.
QUICK START
# Install the SDK
npm install @gami-protocol/sdk
// Initialize client
import { GamiClient } from '@gami-protocol/sdk';
const gami = new GamiClient({ apiKey: 'YOUR_KEY' });
TRACK AN EVENT
// Emit a reward event
await gami.track({
userId: 'user_123',
action: 'LEVEL_UP',
xp: 500,
});
REST API
Full HTTP REST API for server-side integrations. POST events, GET leaderboards, manage quests.
WebSocket
Real-time event streaming for live leaderboards, quest updates, and reward notifications.
Smart Contracts
On-chain ABI references for direct contract interaction on Gami L2 and Ethereum mainnet.