Use this file to discover all available pages before exploring further.
In gaming, players rebuild their reputation from zero every time they switch titles. AIR Kit lets you make achievements, badges, and identities portable — a player’s rank in your game becomes a credential they carry to partner games, tournaments, communities, and airdrops.
Partner games authenticate using the same AIR Account — no new signup required.
// partner-game.js (any game integrating AIR Kit)import { AirService } from '@mocanetwork/airkit';const airService = new AirService({ partnerId: 'PARTNER_GAME_PARTNER_ID' });await airService.init({ buildEnv: BUILD_ENV.SANDBOX });await airService.login(); // player logs in with existing AIR Accountconst user = await airService.getUserInfo();// user.email is the same across all games — portable, unified identity
Only distribute tokens to players who provably hold a real game achievement — filtered on-chain.
// airdrop.js (server-side)async function getEligiblePlayers(allPlayers) { const eligible = []; for (const { email } of allPlayers) { const token = await getPartnerJwt(email); // Use your verifier program to check credential status per player // In production, batch this with your own DB query first to reduce API calls const res = await fetch( `https://api.sandbox.mocachain.org/v1/credentials/status?...`, { headers: { 'x-partner-auth': token } } ); const { vcStatus } = await res.json(); if (vcStatus === 'ONCHAIN') eligible.push(email); } return eligible;}