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
Getbalanceofheldby
Reads a token balance held by an address, native or ERC-20.Reads a token balance held by an address, native or ERC-20.
Bubble
Surfaces a value as an output of this plug.Surfaces a value as an output of this plug.
Getallowancetofor
Reads how much of an ERC-20 token a spender may still pull from a user.Reads how much of an ERC-20 token a spender may still pull from a user.
Bubble
Surfaces a value as an output of this plug.Surfaces a value as an output of this plug.
Approvefor
Grants a spender an allowance to transfer an ERC-20 token from the socket.Grants a spender an allowance to transfer an ERC-20 token from the socket.
Getallowancetofor
Reads how much of an ERC-20 token a spender may still pull from a user.Reads how much of an ERC-20 token a spender may still pull from a user.
Bubble
Surfaces a value as an output of this plug.Surfaces a value as an output of this plug.