{
plyrId: string; // The player ID
gameId: string; // The game ID
token: string; // Token name/symbol
}
{
allowance: string; // Current token allowance amount
expiresAt: string; // ISO timestamp when the allowance expires
}
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;