Accounts

What is an account?

An ICON account is a component representing either a user (opens in a new tab) or a smart contract (opens in a new tab). ICON accounts can send transactions on the ICON network. All accounts have associated addresses, but they look different depending on whether it is associated with a user account or a smart contract account. The account address is also known as a public key (opens in a new tab). This is a common term used in cryptography meaning a string of characters that represent an identity, similar to a driver's license number or a social security code. The account password is also known as a private key (opens in a new tab). The private key is also a string of characters, but it is usually much longer and is nearly impossible to guess, even if you have the public key. It is extremely important to keep track of both the public and private keys. The public key is where you will want to receive transactions. he private key is your password that you can use to verify your identity, for example, if you want to send a transaction.

On the ICON network, there are some special, predefined accounts, such as the Governance contract and the Public treasury.

User account

A user account has an associated private key, can sign and send a transaction, therefore can be the owner of transactions. User accounts are necessary in order to deploy a smart contract.

User accounts are 20 bytes long, consist of hexadecimal characters (opens in a new tab), and are prepended with hx.

Smart contract account

A smart contract account does not have a private key, and cannot initiate a transaction. A smart contract account address can only be the destination of transactions.

Smart contract accounts are 20 bytes long, consist of hexadecimal characters (opens in a new tab), and are prepended with cx.

Creating an account

The simplest way to create an account is through the officially supported Hana wallet (opens in a new tab). Install the wallet as an extension to the Google Chrome (opens in a new tab), Chromium (opens in a new tab), Brave (opens in a new tab) or other Blink-based browsers. Click on the extension to open it in a new tab, and the user interface will guide you through the process of setting up an account.

CTRL + K