Approve Spending
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug reads a wallet's balance of a supplied ERC-20 token and grants a spender an allowance to transfer that token from the socket. It asks the caller for the token address, the allowance amount, and the spender address. It runs whenever the caller executes it, with no schedule or threshold gating the approval. Setting an allowance by hand or on a stale amount risks approving the wrong spender or a figure that does not match the intended transfer.

Actions · 3

  • Get token balance
    Get balance of held by
    Reads a token balance held by an address, native or ERC-20.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.
  • Approve spending
    Approve for
    Grants a spender an allowance to transfer an ERC-20 token from the socket.

Related plugs · 8