Skip to content

Latest commit

 

History

History
65 lines (55 loc) · 2.8 KB

set_up_new_acct_and_proxy.md

File metadata and controls

65 lines (55 loc) · 2.8 KB

Use eosc to Create a New Account

grab the latest version of eosc from https://github.com/eoscanada/eosc/releases or within your terminal run:

go get -u -v github.com/eoscanada/eosc/eosc

Once unpacked, run:

eosc vault create --keys [int]  // if you want eosc to create keys for you

OR

eosc vault create --import [PUBLIC KEY]  // if you have a public key/private key pair that you would like to encrypt into the vault

By default, the vault file will be "./eosc-vault.json" To assign a different name, use the flag --vault-file [VAULT NAME]

You will prompted to create a passphrase, and then to confirm that passphrase. Make sure to keep a backup of your vault file, especially if you use eosc to generate the private key for you.

Now that we have a public key/private key pair, we'll need to assign it to a new account. The design of EOS requires you to have an account to create an account. So we'll need to use an already existing account on the EOS mainnet to create this new account.

If your already existing account does not have an eosc vault file already, you can create one using the above eosc vault create --import.

To create the new account, run the command:

eosc system newaccount [EXISTING ACCOUNT NAME] [NEW ACCOUNT NAME]

You'll want to attach all necessary flags to this. To note are:

Flags:
      --auth-file string     File containing owner and active permissions authorities. See example in --help
      --auth-key string      Public key to use for both owner and active permissions.
      --buy-ram string       The amount of EOS to spend to buy RAM for the new account (at current EOS/RAM market price)
      --buy-ram-kbytes int   The amount of RAM kibibytes (KiB) to purchase for the new account.  Defaults to 8 KiB. (default 8)
  -h, --help                 help for newaccount
      --setpriv              Make this account a privileged account (reserved to the 'eosio' system account)
      --stake-cpu string     Amount of EOS to stake for CPU bandwidth (required)
      --stake-net string     Amount of EOS to stake for Network bandwidth (required)
      --transfer             Transfer voting power and right to unstake EOS to receiver

The new account will require RAM. The current minimum is 3 KiB. By default eosc will purchase 8 KiB unless using either the --buy-ram or --buy-ram-kbytes flags. You will now have the new account registered on the mainnet.

How to Register Your New Account as a Proxy

To register [NEW ACCOUNT] as a proxy, run this command:

eosc system regproxy [ACCOUNT NAME]

Your account will now be registered as a proxy. If you would like to delegate the voting strength from [EXISTING ACCOUNT] to [NEW ACCOUNT], you would run the command:

eosc vote proxy [VOTING ACCOUNT] [PROXY ACCOUNT]