akka_check_allowance
Check the amount of tokens the AKKA Router is approved to spend from a wallet. Returns zero if no approval exists; native tokens never need approval.
Instructions
Check how many tokens the AKKA Router is currently allowed to spend from a wallet. Use this to determine if an approval transaction is needed before swapping. Returns "0" if no approval has been granted. Native token swaps (src = 0xeee...eee) never need approval.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainId": "<chainId>",
"tokenAddress": "<tokenAddress>",
"walletAddress": "<walletAddress>"
},
"name": "akka_check_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Chain ID | |
| tokenAddress | Yes | ERC-20 token address to check | |
| walletAddress | Yes | Wallet address to check allowance for |