eosio.token contract defines the structures and actions that allow users
to create, issue, and manage tokens on EOSIO based blockchains.
The core token
EOS of the EOSIO mainnet are issued under
eosio.token using this smart contract.
There are a few types used in
eosio.token as basic data structures.
You can click the link in the action definitions to see how the types are defined.
create(eosio::name issuer, eosio::asset maximum_supply)¶
Create a token in supply of
issueraccount. If successful, a new entry in
stattable for token symbol scope will be created. Transaction must be signed by the contract account itself.
issue(eosio::name to, eosio::asset quantity, string memo)¶
quantityof tokens to account
towith an optional
memothat accompanies the token issue transaction. The token needs to be created in advance. Transaction must be signed by the
transfer(eosio::name from, eosio::name to, eosio::asset quantity, string memo)¶
quantityof tokens from account
to, with an optional
memothat accompanies the transfer transaction. The token needs to be created in advance. Transaction must be signed by account
open(eosio::name owner, eosio::symbol symbol, eosio::name ram_payer)¶
ram_payerto create an account
ownerwith zero balance for token
symbolat the expense of
ram_payer. Transaction must be signed by account
close(eosio::name owner, eosio::symbol symbol)¶
This action is the opposite for
open(), it closes the account