Custom Token tracking smart contract for EOS
cleos get table customtokens customtokens tokens
cleos push action customtokens set '[unique_id, your_account, contract_account, asset_string]' -p your_account@active
Parameter List:
- Unique ID:
1
below, this must be a unique number in the table. - Record Owner:
solveforanyx
below, the account that manages this table record. - Contract Account:
eosio.token
below, the account which holds the smart contract for the token. - Asset:
0.0000 EOS
below, must be0
and have the correct amount of decimal places (.0000
), with the correct symbol (EOS
).
Example:
cleos push action customtokens set '[1, "solveforanyx", "eosio.token", "0.0000 EOS"]' -p solveforanyx@active
cleos push action customtokens del '[unique_id]' -p your_account@active
Parameter List:
- Unique ID:
1
below, the unique ID of the row to remove.
Example:
cleos push action customtokens del '[1]' -p solveforanyx@active
eosiocpp -g customtokens.abi customtokens.cpp && eosiocpp -o customtokens.wast customtokens.cpp
cleos set contract customtokens customtokens -p customtokens@active