Skip to content

How To Recreate An Account v0.18.13

manikanta472 edited this page Jan 23, 2022 · 1 revision

This tutorial applies to the below scenario you may find yourself in:

You have the public key and private key for your previous account, but you don't have the access to that account in the current node.

If your Fullnode is running in GCP image or Docker, please add sudo before olclient in this tutorial.

As always being suggested, please make a backup of your public key and private key when you create an account using olclient, see HERE

Recreate account using public key and private key

Go to your node folder

cd $OLDATA

Recreate Account

olclient account add --pubkey YourPublicKey --privkey YourPrivateKey --password ChooseANewPassword

You should see similar result as below:

Successfully added account to secure wallet.
Address for the account is:  YourAccountAddress

Check balance in your account

olclient list

You should see similar result as below:

I[2020-09-03T21:35:26Z] olclient: Accounts on node: YourNodeName
Accounts from Secure Wallet:
Address: YourAccountAddress    Balance: YourAccountBalance

Send OLT to a recipient

olclient send --party "your address without 0lt prefix" --counterparty "address you want to send token to without 0lt prefix" --amount "100" --fee 0.00000001 --currency OLT 

then input the password for verification