-
Notifications
You must be signed in to change notification settings - Fork 12
Importing Accounts
MiaoShi09 edited this page Jan 24, 2019
·
2 revisions
AionR Kernel can import accounts from previous binaries, Aion(Java) Kernel, and private keys.
If a new AionR Kernel binary is coming out,
- you can simply replace the old binary file with the new binary and launch it with the old config.toml file. Any data from the old binary, including chains(databases), keys(accounts) and caches, will be accessible for new binary.
OR
- you can setup a new work base folder by adding
base_path
in configuration:
[aion]
base_path = "new/location/path"
and import old accounts using CLI:
# aion_new: new binary name
./aion_new --config="/config/toml/path" account import "old_base/keys/chain_name/*"
If you use Aion(Java) Kernel and want to import its keystore files into AionR Kernel, go to AionR Kernel directory and enter:
./aion account import <path/to/aion/keystore/files>
And you can find imported keystore files in $BASE/keys/<chain_name>
To import private keys into AionR Kernel, go to AionR Kernel directory and enter:
./aion account import-by-key <private key>
Loading config file from path/to/config.toml
please type password:
please repeat password:
A new account has been created: <new_aion_address>
Check if the accounts imported into the current keys, enter
./aion account list
The imported accounts should be showed in the list.
If you want to do the account management for a specific network, you can:
- if the network is mainnet, mastery, or custom, use the commands above and replace
./aion
with the quick run script./mainnet.sh
,./mastery.sh
, or./custom.sh
; - Or if the network is not packed in the binary folder, run:
./aion --config=path/to/configuration/file --chain=path/to/chain/file <operation commands>
Basic
Kernel Configuration
- Build AionR Kernel
- JSON-RPC APIs Doc
- JSON-RPC APIs Rust vs Java
- Wallet
- Genesis Block
- Configuration File and Command Line Interface
- Log Targets Table
- Aion Seed Nodes
- Migration From 0.1.* to 0.2
DApp Developers
Tutorials