akka_get_approve_tx
Generate an unsigned ERC-20 approve transaction for the AKKA Router, required before swapping tokens. Omit amount for unlimited approval.
Instructions
Generate an ERC-20 approve transaction for the AKKA Router. Returns unsigned transaction data (to, data, value) to be signed and sent. Required before swapping ERC-20 tokens (not needed for native tokens). If amount is omitted, grants unlimited 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>"
},
"name": "akka_get_approve_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Chain ID | |
| tokenAddress | Yes | ERC-20 token address to approve | |
| amount | No | Approval amount in wei (omit for unlimited) |