Set up a Host
The process of onboarding a Host is designed to be as straightforward as possible.
- 2.Install Edge CLI
Once the prerequisites are satisfied, the process to set up a host is as follows:
- 1.Create/restore a wallet
- 2.Create a stake
- 3.Assign the device to the stake
- 4.Start the node
An XE wallet is required to participate in the network. This will hold your staked funds and earnings. An XE wallet consists of an XE address (which looks like
xe_abcd...) and a private key.
Edge CLI allows you to use an existing wallet, or can create one for you if you need one.
Create a wallet
Run the following command for interactive setup:
edge wallet create
You will be asked to set a passphrase. This will be used to encrypt your new wallet. The setup will also offer you a copy of your private key so you can back it up securely.
Restore a wallet
edge wallet restore
You will be asked to provide your private key and a passphrase. The private key will be used to restore your wallet data, and the passphrase will encrypt it.
If you do not already have funds in your XE wallet, you will need to get acquire some before you can stake.
Funding your wallet
Creating a stake
Now that you have funds, you can choose which type of stake to create. A stake allows network nodes to authenticate with the network, and can be one of the following three types:
- Host (
- Gateway (
- Stargate (
Run the following command to create a Host stake:
edge stake create host
This will advise of the stake amount required and your remaining available balance after creating the stake. You will need your passphrase in order to decrypt your wallet and sign the staking transaction.
Once the stake is created, you will need to wait a few moments until it is processed by the blockchain. To check the status of your pending transaction, you can run
edge tx lsp. To check whether your new stake is available, you can run
edge stake ls.
Now that you have a stake, you can add your device to the network to run a node corresponding to the stake type. Run the following command to set up your device interactively:
edge device add
You will need your passphrase again for this transaction. Once it has been submitted to the blockchain, it'll take around 1-2 minutes before you're ready to start your node.
edge tx lspand/or
edge stake lsto check its status.
Once the transaction has been confirmed, you're ready to start your node.
Run the following command:
edge device start
This will download and start the node software, which should then run in the background and self-update. Your device is successfully onboarded!
Edge CLI offers a variety of functions for managing your wallet, stakes, transactions, and the device itself. Have a look at the Commands Overview for more information.
If you're struggling or encountering issues, then join our Discord server and let us know in the #onboarding channel and one of the team or a community member will be happy to help.
Apple Silicon M1 Chipsets
If you're using the new Apple Silicon M1 chipsets you may run into an issue running the CLI. These new chips have additional requirements and while we work to fix these issues, you may need to run the following command to unlock the
xattr -cr /usr/local/bin/edge