Adding your wallets or accounts to the node

Meri Herrera edited this page Jun 14, 2018 · 1 revision

:exclamation: It's only recommended for testing purposes

Maybe you have wallets and you want to start your node and work with your own accounts. You can add accounts to the node changing the wallet section in the config file in this way:

 wallet { 
    enabled = true,
    accounts = [
        {
            "publicKey" : "YOUR_WALLET_PUBLIC_KEY",
            "privateKey" : "YOUR_WALLET_PRIVATE_KEY"
        }
    ]
 }

Another option is to create a new account (or wallet) on the node. You can do this by connecting the RSK Console to the node and using the command:

 web3.personal.newAccount('password')

Where password is a secret word that you choose. It will create and add a new account to your node's accounts.

Note: you need to enable the rpc personal module into modules section in the config file to use this command, by adding:

    {
        name: "personal",
        version: "1.0",
        enabled: "true"
    }

Another option using rpc personal module and RSK Console is to import your account with this method:

web3.personal.importRawKey(privateKey)

replacing privateKey with your account's private key.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.