Get User Token Allowance

Get user token allowance for a game

Endpoint: /game/allowance/{plyrId}/{gameId}/{token} Method: GET

{
    plyrId: string; // The player ID
    gameId: string; // The game ID
    token: string; // Token name/symbol
}

Example Usage

const timestamp = Date.now().toString();
const hmac = generateHmacSignature(timestamp, {}, secretKey);

const response = await axios.get(apiEndpoint + '/game/allowance/' + plyrId + '/' + gameId + '/' + tokenName, {
    headers: {
        apikey: apiKey,
        signature: hmac,
        timestamp: timestamp
    }
});

const allowance = response.data.data.allowance;
const expiresAt = response.data.data.expiresAt;

Last updated