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