Set Budget for Spender
Ethereum
Ethereum
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug sets an ERC-20 allowance by approving a caller-supplied amount of a named token for a named spender and reporting the balance and allowance around the change. It asks the caller for the token, the amount, and the spender address. It fires whenever the caller runs it, with no schedule or threshold gating execution. Setting an allowance by hand or against a stale allowance reading can grant a spender more or less than intended.

Actions · 7

  • 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.
  • Get token allowance
    Get allowance to for
    Reads how much of an ERC-20 token a spender may still pull from a user.
  • 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.
  • Get token allowance
    Get allowance to for
    Reads how much of an ERC-20 token a spender may still pull from a user.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.

Related plugs · 8