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.
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": {
"chain": "<chain>",
"token_address": "<token_address>",
"spender": "<spender>"
},
"name": "fluid_build_token_approve"
}
}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 |