ERC20
Functionality available for contracts that implement the IERC20 interface.
Get the allowance of another wallet address over the connected wallet's funds.
"Allowance" refers to the number of tokens that another wallet is allowed to spend on behalf of the connected wallet.
The address of the wallet to check the allowance of.
Must be a string.
A CurrencyValue struct is returned with the allowance available in the value property.
The same as allowance, but allows you to specify the owner wallet to check, instead of using the connected wallet.
The address of the wallet that owns the funds.
Must be a string.
The address of the wallet to check the allowance of.
Must be a string.
A CurrencyValue struct is returned with the allowance available in the value property.
View the balance (i.e. number of tokens) the connected wallet has in their wallet from this contract.
A CurrencyValue struct is returned with the allowance available in the value property.
The same as balance, but allows you to specify the wallet address to check, instead of using the connected wallet.
The address of the wallet to check the balance of.
Must be a string.
A CurrencyValue struct is returned with the allowance available in the value property.
Get the metadata of the token smart contract, such as the name, symbol, and decimals.
Grant allowance to another wallet address to spend the connected wallet's funds (of this token).
The address of the wallet to grant allowance to.
Must be a string.
The number of tokens to give as allowance.
Must be an int.
Get the number of tokens in circulation for this contract.
A CurrencyValue struct is returned with the allowance available in the value property.
Transfer tokens from the connected wallet to another wallet.
The address of the wallet to send the tokens to.
Must be a string.
The amount of tokens to send.
Must be a string.