ICON Developer Portal

ICON Developer Portal

ICON Network is a decentralized smart contract protocol based on ‘loopchain’, a high-performance blockchain engine. The ICON Network aims to remove barriers among different blockchains and allow them to exchange values without intermediaries. By realizing this goal, ICON will realize the mass adoption of blockchain technology and Hyperconnect the World.

Get Started

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.

$ tbears keystore [keystore_file_name]
Input your keystore password :
Retype your keystore password :

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.

wallet = KeyWallet.create()

Load existing account

# load existing account using private key
key = bytes.fromhex(userPrivateKey)
wallet = KeyWallet.load(key)

# load existing account from keystore file
wallet = KeyWallet.load(keystoreFilePath, password)

Export keystore file

wallet.store(destinationFilePath, password)

Using Java SDK

Create an account

KeyWallet wallet = KeyWallet.create()

Load existing account

// load existing account using private key
Bytes key = new Bytes(userPrivateKey)
KeyWallet wallet1 = KeyWallet.load(key);

// load existing account using keystore file
File file = new File(destinationDirectory, filename);
KeyWallet wallet2 = KeyWallet.load(password, file);

Export keystore file

// path to store the keystore file. keystore file name is automatically generated.
File destinationDirectory = new File("./");

// keystore file password
String password = "password_string";

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").

Updated about a year ago

Create an account

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.