ARC4 ERC20 ABI Demo
An ARC4 compliant ERC20 token on Algorand.
Only available with sandbox and KMDConfig
App Operations
Contract Methods
deploy.sh
or demo.sh
, or by using this UI.deploy
Deploy the smart contract. During deployment the full total supply will be given to the deployer.
name (string)
Name of the token.
symbol (string)
Symbol of the token.
totalSupply (uint64)
Total token supply.
decimals (uint64)
Number of decimals the token uses - e.g. 8, means to divide the token amount by 100000000 to get its user representation.
Returnstype bool
Returns true if successful.
name
Returns the name of the token - e.g. "TestToken".
Returnstype string
The name of the token.
symbol
Returns the symbol of the token. E.g. "TT".
Returnstype string
The symbol of the token.
decimals
Returns the number of decimals the token uses - e.g. 8, means to divide the token amount by 100000000 to get its user representation.
Returnstype uint64
The number of decimals the token used.
totalSupply
Returns the total token supply.
Returnstype uint64
The total supply of the token.
balanceOf
Returns the account balance of another account with account _owner
.
_owner (account)
Address of account you want the balance for.
Returnstype uint64
Balance of account.
transfer
Transfers _value
amount of tokens to account _to
.
_to (account)
Address to send tokens to.
_value (uint64)
Amount of tokens to send.
Returnstype bool
Returns true if successful.
transferFrom
Transfers _value
amount of tokens from account _from
to account _to
using the allowance mechanism.
_from (account)
Address to send tokens from.
_to (account)
Address to send tokens to.
_value (uint64)
Amount of tokens to send.
Returnstype bool
Returns true if successful.
approve
Allows _spender
to withdraw from your account multiple times, up to the _value
amount. If this function is called again it overwrites the current allowance with _value
.
_spender (account)
Address of account you want to allow access to your funds.
_value (uint64)
Allowance to give spender.
Returnstype bool
Returns true if successful.
allowance
Returns the amount which _spender
is still allowed to withdraw from _owner
.
_owner (account)
Address of account to check.
_spender (account)
Address of spender which we're finding the limit for.
Returnstype uint64
Allowance of spender for owner.