USAGE EOS CLEOS - EASY

in #eos7 years ago (edited)

HOW TO CREATE TOKEN AND LOOK BALANSE

./cleos create account eosio eosio.token EOS6kQSyGndvgpBWnj EOS6kQSyGndvgpBWnj

./cleos set contract eosio.token /root/eos/build/contracts/eosio.token -p eosio.token

./cleos push action eosio.token create '[ "testacc", "2000000000.000000 DAFC", 0, 0, 0]' -p eosio.token

it return

executed transaction: 315ef3290411893e8e1e4d4b8035a0f4209e49bc4143c9b847acbc21db14fba6 248 bytes 104448 cycles
eosio.token <= eosio.token::create {"issuer":"testacc","maximum_supply":"2000000000.000000 DAFC","can_freeze":0,"can_recall":0,"can_whi...

./cleos push action eosio.token issue '[ "testacc", "20000000000.000000 DAFC", "deposit started" ]' -p testacc

it return

executed transaction: e85b692a77488e000c9d4a59b74c0b40888a3cb8c937c744ee51253a6d1eda70 264 bytes 109568 cycles
eosio.token <= eosio.token::issue {"to":"testacc","quantity":"20000000000.000000 DAFC","memo":"deposit started"}
» issue

HOW GET BALANSE ON ACCOUNT

./cleos get currency balance eosio.token testacc

it return balance as

20000000000.000000 DAFC

IF YOU CREATE FEW TOKENS

it return balance as

20000000000.000000 DAFC
23432400.000000 DAS
23229700000.000000 DFC