Skip to content

Create a PalletOne account

冯毅然 edited this page Dec 29, 2018 · 4 revisions

Notice : Make sure the gptn directory has been included in the $PATH.

Introduction

In order to manipulate account related information, palletone provides two modes of operation, including interactive and gptn command.

if you perfer interactive mode, you need to enter the ptn shell environment first, entering :

$ gptn attach /path/to/palletone/gptn.ipc

to exit console using exit command.

Example

Create new account

Make sure you remember the password you gave when creating a new account (with either new or import). Without it you are not able to unlock your account.

command mode:

$ gptn account new
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase:
Repeat passphrase:

console mode:

> personal.newAccount("passphrase")

or with no encrypt

> personal.newAccount()

Now you can get the address of your account.

To view all the accounts in your wallet via this command:

$ gptn account list

Dump keys

$ gptn account dumpkey [your address]

You need to provide the password for given address to unlock the account.

Backups account

It is safe to transfer the entire directory or the individual keys therein between palletone nodes by simply copying.

Keys are stored under [DATADIR]/keystore. Make sure you backup your keys regularly.

Restore account

$ gptn account import /path/to/keyfile


For more information please entering $gptn account -h

Clone this wiki locally