fuse_smart_approve_and_call
ActiveTool of Fuse Network
declared in 0.1.0
Atomically approves a token and invokes a follow-up call on the spender from the configured smart wallet. Common DeFi pattern.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"tokenAddress",
"spender",
"amount",
"callData"
],
"properties": {
"unit": {
"enum": [
"display",
"base"
],
"type": "string"
},
"amount": {
"type": "string",
"description": "Allowance amount in the token's display unit (or base if `unit: \"base\"`)."
},
"spender": {
"type": "string",
"description": "Contract that will receive the subsequent call."
},
"callData": {
"type": "string",
"description": "Encoded calldata to invoke on `spender` after approval (0x-prefixed hex)."
},
"tokenAddress": {
"type": "string",
"description": "ERC-20 token contract address to approve."
}
},
"additionalProperties": false
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Fuse Network
1/7 registries