fluid_build_token_approve
Approve an ERC20 token for spending by a Fluid contract (fToken, vault, or DEX pool). Builds an unsigned transaction required before deposit or supply.
Instructions
Build an unsigned transaction to approve an ERC20 token for spending by a Fluid contract (fToken, vault, DEX pool). Required before deposit/supply operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Blockchain network. Supported: ethereum, arbitrum, base, polygon, plasma | |
| amount | No | Amount to approve in raw units. Defaults to max uint256 (unlimited). | |
| rpc_url | No | ||
| spender | Yes | Address to approve (fToken, vault, or pool address) | |
| token_address | Yes | ERC20 token address to approve |