I have set up a single node testnet as shown below:
nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --contracts-console --verbose-http-errors --delete-all-blocks
Then I have set up an account called "hamnett". And issued myself 100 EOS:
cleos create account eosio hamnett key key
cleos push action eosio.token issue '[ "hamnett", "100.0000 EOS", "memo" ]' -p eosio@active
Finally, I want to check how much balance I have, and how much I have staked. So I type:
cleos get account hamnett
and the result is:
permissions:
owner 1: 1 key
active 1: 1 key
memory:
quota: unlimited used: 3.02 KiB
net bandwidth:
used: unlimited
available: unlimited
limit: unlimited
cpu bandwidth:
used: unlimited
available: unlimited
limit: unlimited
Why is everything showing up as unlimited and why is my balance not shown?
Note: key
is not the public key, just trying to keep everything readable.
$ cleos set contract eosio path/to/build/contracts/eosio.system -p eosio
$ cleos system newaccount
providing the relevant values for--stake-net
and--stake-cpu
cleos system newaccount eosio.system hamnett --stake-net "1 EOS" --stake-cpu "1 EOS" --buy-ram-kbytes 8 key key
. The error this gives isUnknown action buyrambytes in contract eosio code: eosio, action: buyrambytes, args: {"payer":"eosio.system","receiver":"hamnett","bytes":8192}
eosio.system
account because you uploadeosio.system
witheosio
so in your command afternewcommand
i would useeosio
as the creator (i don't know if you created aneosio.system
account); (2) I would explicitly write the values with 4 decimal places (1.0000 EOS
instead of1 EOS
); (3) i would trySYS
instead ofEOS
if your code was compiled using the default settings. I'll try to post later a clearer explanation and step by step process that works for me