By Instant PlayPass
Allows users to quickly and seamlessly start playing games on ZooGames
Last updated
Allows users to quickly and seamlessly start playing games on ZooGames
Last updated
Instant PlayPass is a streamlined onboarding feature for ZooGames. With just a username, players can instantly dive into games without initially setting up a ZooGamesID. Behind the scenes, two addresses (a primary and a mirror gaming address) are auto-generated for the player.
This lets newcomers freely explore games, earn tokens, and collect NFTs.
Automated Address Generation Upon entering a game, users will only be required (or not — depending on the game developer’s chosen settings) to input a username. In the backend, the ZooGamesAPI will generate two distinct addresses for the user: a primary address and a corresponding gaming (mirror) address.
Gaming Experience & Asset Accumulation Users can immediately immerse themselves in the gaming environment, earning tokens, in-game chips, and NFTs, all of which are compatible across multiple blockchains, ensuring interoperability and flexibility.
Claiming Mechanism If a user decides to formalize their engagement on the platform, they will be provided with a unique Claiming URL on ZooGames. This URL directs them to a secure portal where they can establish a permanent ZooGamesID which will be linked to the account they have been utilizing.
Private Key Retrieval & Integration After the creation of their ZooGamesID, users will have the possibility to securely download the private key associated with their temporary primary address. This key can then be integrated as a secondary address within their newly minted ZooGames account, ensuring continuity and security of assets.
IMPORTANT NOTICE: Upon successful authentication via the PlayPass account, do not log out the user's session. Session termination could lead to irreversible loss of crypto-credentials and associated crypto assets for the player.
It's imperative to maintain session persistence until the user transitions and binds their account to a dedicated web3 Wallet.
Grant your players instant access to your game using Instant PlayPass.
POST
API_END_POINT_URL/API_KEY/register/temp_user
SDK Preparation
You need to prepare for SignedSignatureFromPayload by
Installing zoo-game-sdk by npm install zoo-game-sdk
Import SDK by import * as ApiKey from 'zoo-game-sdk/src/auth/apikey/index'
Signing by SDK
let bodyMessage =JSON.stringify(payload);
let hmac = ApiKey.signData(bodyMessage, SEC_KEY);
*Use "hmac" as SignedSignatureFromPayload
The returned JWT acts as a perpetual sign-in session with no expiration date and unlimited spending approval. Once this account type is created, players can enter the game using the JWT as their ongoing session.
When players decide to transition to a web3 wallet, they can claim their wallet credentials using a redeem code.
POST
API_END_POINT_URL/API_KEY/reveal/mirrorRedeemCode
SDK Preparation
You need to prepare for SignedSignatureFromPayload by
Installing zoo-game-sdk by npm install zoo-game-sdk
Import SDK by import * as ApiKey from 'zoo-game-sdk/src/auth/apikey/index'
Signing by SDK
let bodyMessage =JSON.stringify(payload);
let hmac = ApiKey.signData(bodyMessage, SEC_KEY);
*Use "hmac" as SignedSignatureFromPayload
Users can use the provided Redeem Code to register on the Zoo.games Platform. Once registration is complete on Zoo.games, the Mirror (Game) Address will be connected to the newly registered account, and users can then access the Private Key of the PlayPass Primary Address.
After registering using the redeem code, all sessions associated with the PlayPass account will expire. Ensure you also disconnect them from the current session.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
API_KEY*
String
Api Key
gameAddress*
Address
Address of Game/Project registered Primary Address
username*
String
Choose any temporary username you like. We suggest using a prefix like 'TMP_' followed by numbers, such as 'TMP_123456789'. You can also consider using the current timestamp
API_KEY*
String
Api Key
jwt*
JWT String
a JWT string generated from the PlayPass account.