Check token allowance
Approvals
Check Allowance
Check how many tokens the AKKA Router is currently allowed to spend on behalf of a wallet address. Use this to determine if an approval transaction is needed before swapping.
GET
Check token allowance
When to use
Call this before swapping an ERC-20 token to check if the AKKA Router already has sufficient spending approval:Authorizations
API key for authentication. Contact AKKA on Telegram to obtain your key.
Path Parameters
Blockchain chain ID
Available options:
999 Example:
999
Query Parameters
Contract address of the token to check allowance for.
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb"
Wallet address to check the allowance for.
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0xD3C0F471488523b378F2D9C21939c97300c510F5"
Response
Allowance retrieved successfully
Number of tokens the AKKA Router is allowed to spend (in wei)
Example:
"0"
