Skip to content

Creating and restoring wallets

Luke Duncalfe edited this page Apr 9, 2021 · 5 revisions

Creating a new wallet

Create a new wallet on your node:

nanook = Nanook.new
wallet = nanook.wallet.create

Restoring an existing wallet

If you own a wallet anywhere else on the Nano network and would like to use it on your node, you can restore the wallet. This will create a new wallet on the node (with a new wallet id) with its seed set to the original wallet's seed. Having the same seed as the original wallet will mean accounts created in the wallet will be exactly the same as those that were in the original wallet.

nanook = Nanook.new
wallet = nanook.wallet.restore(seed, accounts: 1)

See

Changing your wallet's default representative

Your wallet's default representative will be one of the official developer's representatives. A healthy Nano network will be as decentralized as possible, so the next step you should do after creating or restoring a wallet is to choose a new representative and set it as your wallet's default.

wallet.change_default_representative(new_representative)

See