You're viewing a demo portfolio

Join the waitlist
PRSM

fuse_smart_approve_and_call

Active

Tool 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
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

Fuse Network

1/7 registries
View full server →