In-Game Chips Tokens (ERC20)

Unleashing the Power of InGameChips in the Gaming Realm

In-Game Chips are ERC20 tokens, which means they offer minting and txs transparency that traditional web2 game currencies can't match. This new token helps games create virtual currencies without providing liquidity to an exchange market.

Developers can create In-Game Chips with ZooGames easy-to-use interface and control them with complete security using the ZooGames API. With In-Game Chips, players can earn chips by completing missions or buy chips in packs. They can even be airdropped to mirror addresses on ZooGames. In short, In-Game Chips are the future of gaming and a key element of the Web3 gaming experience.

Use Cases

  1. Virtual Currency: In-Game Chips can be used as a virtual currency within the game ecosystem. Players can earn In-Game Chips by completing in-game tasks, missions, or achievements. These chips can then be used to purchase in-game items, upgrades, cosmetics, or unlock new levels.

  2. In-Game Economy: Developers can design complex in-game economies using In-Game Chips. Players can trade or exchange chips with each other to acquire rare items, trade with other players, or participate in player-driven economies within the game.

  3. Reward System: In-Game Chips can serve as a reward system for players who engage actively in the game. Developers can distribute chips to players as rewards for reaching milestones, winning competitions, or demonstrating exceptional skills. These rewards can incentivize players to continue playing and achieving in the game.

  4. Social Interaction: In-Game Chips can facilitate social interaction among players. Players can gift or trade chips with their friends or engage in friendly competitions where chips are wagered. This fosters a sense of community and engagement within the game.

  5. Airdrops and Promotions: In-Game Chips can be airdropped to players' mirror addresses as part of promotional campaigns or as a gesture of appreciation. These airdropped chips can be used to attract new players, retain existing ones, or introduce special events within the game.

  6. Limited Edition Collectibles: Developers can create limited edition or rare InGameChips that serve as collectible items within the game. Players can trade or showcase these unique chips, creating a market for collectors and enthusiasts.

FURTHER POSSIBLE USE CASE Cross-Game Utility: In-Game Chips can have utility across multiple games within the ZooGames ecosystem. Players can accumulate chips from different games and use them interchangeably within any compatible game on the platform, enhancing the interconnectedness of the gaming experience.

Init In-Game Chips creation

To create an In-Game Chips token using the ZooGames API, you can follow these steps:

  1. Send a request to the API endpoint, specifying the Token name and symbol in the request payload.

  2. The API will process your request and generate a new In-Game Chips token with the provided Token name and symbol.

  3. Once the token creation is successful, you will receive a response containing the necessary information about the newly created token, such as its contract address and other relevant details.

  4. You can now use this In-Game Chips token within your game environment.

Initialize ERC20 before using the token

POST API_END_POINT_URL/API_KEY/erc20/create

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

Query Parameters

NameTypeDescription

API_KEY*

String

API_KEY

Request Body

NameTypeDescription

gameAddress*

Address

Address of Game/Project registered Primary Address

name*

String

Name of this ERC20 Token

symbol*

String

Token Symbol

{
  success: true,
  data: {
    tokenAddress: '0xe3c4937ee22e1f2eb80d2d7a881e7777',
    createTxHash: '0x12345648945648784564687845647887',
    type:'erc20'
  }
}

You need to keep Token Address for the future usage

Mint In-Game Chips

This function allows game developers to generate new tokens on-demand, providing flexibility and control over the in-game economy.

Mint Tokens by amount to any ZooGamesID

POST API_END_POINT_URL/API_KEY/erc20/mint

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

Query Parameters

NameTypeDescription

API_KEY*

String

API_KEY

Request Body

NameTypeDescription

gameAddress*

Address

Address of Game/Project registered Primary Address

tokenAddress*

Address

Address of Token you have created or target Token to be minted

amount*

String / Number

Amount to Mint (Max. 18 Decimals) * Recommended to use String over Number

username*

String

The recipient ZooGamesID

{
  success: true,
  data: {
    mintTxHash: '0x12345678745648789546541324',
    tokenAddress: '0xAb5448754A225F655458Ea52988',
    to: 'ZooGamesID',
    amount: '1000',
  }
}

Burn In-Game Chips

This function allows game developers to remove existing tokens from circulation, providing control over the in-game economy and token supply.

Burn Tokens by amount from any ZooGamesID

POST API_END_POINT_URL/API_KEY/erc20/burn

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

Query Parameters

NameTypeDescription

API_KEY*

String

API_KEY

Request Body

NameTypeDescription

gameAddress*

Address

Address of Game/Project registered Primary Address

tokenAddress*

Address

Address of Token you have created or target Token to be burnt

amount*

String / Number

Amount to Burn (Max. 18 Decimals) * Recommended to use String over Number

username*

String

The target ZooGamesID

{
  success: true,
  data: {
    burnTxHash: '0x12345678745648789546541324',
    tokenAddress: '0xAb5448754A225F655458Ea52988',
    from: 'ZooGamesID',
    amount: '1000',
  }
}

Transfer In-Game Chips

Capability to transfer In-Game Chips tokens from one user (User A) to another user (User B) using the "TRANSFER" function. This function allows for seamless peer-to-peer token transfers within the game ecosystem.

Transfer Tokens by amount to any ZooGamesID

POST API_END_POINT_URL/API_KEY/erc20/transfer

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

Query Parameters

NameTypeDescription

API_KEY*

String

API_KEY

Request Body

NameTypeDescription

gameAddress*

Address

Address of Game/Project registered Primary Address

tokenAddress*

Address

Address of Token you have created or target Token to be transferred

amount*

String / Number

Amount to transfer (Max. 18 Decimals) * Recommended to use String over Number

fromUser*

String

The source ZooGamesID

toUser*

String

The target ZooGamesID

{
  success: true,
  data: {
    transferTxHash: '0x12345678745648789546541324',
    tokenAddress: '0xAb5448754A225F655458Ea52988',
    from: 'ZooGamesIDA',
    to: 'ZooGamesIDB'
    amount: '1000',
  }
}

In-Game Chips Balance

Check the token Balance by ZooGamesID

POST API_END_POINT_URL/API_KEY/erc20/balance

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

Query Parameters

NameTypeDescription

API_KEY*

String

API_KEY

Request Body

NameTypeDescription

gameAddress*

Address

Address of Game/Project registered Primary Address

tokenAddress*

Address

Address of Token you have created or target Token to be checked

username*

String

ZooGamesID to check

{
  success: true,
  data: '1000',
}

Last updated