Skip to content

Instantly share code, notes, and snippets.

@lucas-maicoin
Last active June 28, 2018 04:01
Show Gist options
  • Save lucas-maicoin/20ade575a273b0d90273f8f2f03a2e94 to your computer and use it in GitHub Desktop.
Save lucas-maicoin/20ade575a273b0d90273f8f2f03a2e94 to your computer and use it in GitHub Desktop.
EOS Account

create an account

# buy RAM 
$ cleos system buyram lucaszhang15 lucaszhang15 "0.10000 EOS"

# delegate bandwidth for CPU and network
$ cleos system delegatebw lucaszhang15 lucaszhang15 "0.50000 EOS" "0.50000 EOS"

# create EOS account
$ cleos system newaccount -x 1000 --stake-net "0.1000 EOS" --stake-cpu "0.1000 EOS" --buy-ram-kbytes 8 lucaszhang15 lucaszhang11 EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y EOS7nSQEwdC5rTBu9CPAoQib8gpb9SyWoTrZ5ZXdqk5Ae8FrDd5vW

get account

$ cleos get account lucaszhang11
permissions:
     owner     1:    1 EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y
        active     1:    1 EOS7nSQEwdC5rTBu9CPAoQib8gpb9SyWoTrZ5ZXdqk5Ae8FrDd5vW
memory:
     quota:     7.954 KiB    used:     2.926 KiB

net bandwidth:
     delegated:       0.1000 EOS           (total staked delegated to account from others)
     used:                 0 bytes
     available:         47.5 KiB
     limit:             47.5 KiB

cpu bandwidth:
     delegated:       0.1000 EOS           (total staked delegated to account from others)
     used:                 0 us
     available:        9.314 ms
     limit:            9.314 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment