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.
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 |