Create an account
There are several ways to create an account, either using SDKs or on ICONex wallet app. In this document, we will explain one by one.

Using T-Bears

You can create a keystore file from CLI using tbears keystore command.
1
$ tbears keystore [keystore_file_name]
2
Input your keystore password :
3
Retype your keystore password :
4
​
5
Made keystore file successfully

Using Python SDK

Create an account

KeyWallet is an object representing an account. The code below creates a new KeyWallet instance. Internally, a private-public key pair is generated.
1
wallet = KeyWallet.create()

Load existing account

1
# load existing account using private key
2
key = bytes.fromhex(userPrivateKey)
3
wallet = KeyWallet.load(key)
4
​
5
# load existing account from keystore file
6
wallet = KeyWallet.load(keystoreFilePath, password)

Export keystore file

1
wallet.store(destinationFilePath, password)

Using Java SDK

Create an account

1
KeyWallet wallet = KeyWallet.create()

Load existing account

1
// load existing account using private key
2
Bytes key = new Bytes(userPrivateKey)
3
KeyWallet wallet1 = KeyWallet.load(key);
4
​
5
// load existing account using keystore file
6
File file = new File(destinationDirectory, filename);
7
KeyWallet wallet2 = KeyWallet.load(password, file);

Export keystore file

1
// path to store the keystore file. keystore file name is automatically generated.
2
File destinationDirectory = new File("./");
3
​
4
// keystore file password
5
String password = "password_string";
6
​
7
String fileName = KeyWallet.store(wallet, password, destinationDirectory);

Using ICONex

ICONex is a Chrome extension app. If you do not have it yet, please install the extension.

Create an account and download keystore file.

    1.
    Click "Create Wallet".
    ​
    2.
    Select "ICON (ICX)"
    ​
    3.
    Enter a wallet name and password.
    ​
    4.
    Download the keystore file for backup.
    ​
    5.
    Confirm your private key and keep it safe.
    ​

Load existing account

    1.
    Click "Load Wallet".
    2.
    You can load your account from the keystore file ("Select wallet file") or using a private key ("Enter Private Key").