Integration Guides
Unity SDK
Installation: Import package, drag
G3XManagerto sceneAuthentication: Connect wallet, handle player sessions
Event Submission: Use
G3XAPI.SendEvent()for in-game actionsRewards: Call
G3XAPI.ClaimRewards()to distribute XP/tokens/NFTsExample Code:
csharpSalinEditG3XAPI.SendEvent("Kill", playerId, matchId);
Unreal Engine SDK
Installation: Add plugin to
/PluginsdirectorySetup: Initialize G3X module in your GameMode
APIs:
ValidateEvent()FinalizeMatch()
Sample Usage:
cppSalinEditUG3XManager::ValidateEvent(EventName, PlayerID, MatchID);
Web/HTML5 SDK
Install:
bashSalinEditnpm install g3x-sdkInitialize:
jsSalinEditimport { G3X } from 'g3x-sdk'; const g3x = new G3X({ apiKey: 'YOUR_KEY' });Main Functions:
g3x.authenticate(walletAddress)g3x.sendEvent(eventData)g3x.claimRewards(playerId)
Last updated