Understanding Ethereum Accounts
Accounts play a central role in Ethereum, existing in two primary forms:
- Externally Owned Accounts (EOAs): Controlled by private keys (user-owned)
- Contract Accounts: Governed by code with their own storage
Accounts maintain state (balances, storage) and enable user interaction with the Ethereum network through transactions. Without accounts, Ethereum would merely function as a basic cryptocurrency network.
Key Features
- Represent external entities (users/miners/automated agents)
- Utilize public-key cryptography for secure transaction signing
- Addresses derive from the last 20 bytes of a public key hash
Key Files and Security
Each account consists of:
- A private/public key pair
- A keyfile (JSON format) storing encrypted credentials
- Located in the node's
keystoredirectory
Best Practices
๐ Backup your keyfiles regularly
โ ๏ธ Never share your password or raw private key
๐ Keyfiles can be safely copied between nodes
Creating an Account
Accounts can be generated offlineโno internet or blockchain sync required. New accounts start with 0 ETH until funded.
Account Creation Methods
1. Using Geth CLI
$ geth account new
# Follow prompts to set password
$ geth account list # View all accounts2. Geth Console
> personal.newAccount() // Interactive creation
> eth.accounts // List accounts3. Mist Wallet (GUI)
- Download and install Mist Ethereum Wallet
- Complete setup wizard to create your first account
- Use "Add Account" for additional accounts
4. Multi-Signature Wallets
- Requires multiple accounts for transaction approvals
- Set daily withdrawal limits and required confirmations
- Store all participant addresses securely
Presale Wallet Import
Via Mist Wallet
- Drag
.jsonfile to import area - Enter presale password
Via Geth
$ geth wallet import /path/to/presale-wallet.jsonAccount Maintenance
Updating Accounts
$ geth account update <address_or_index>
# Allows password changes and format upgradesBackup/Restore
Locate keyfiles:
- Windows:
%appdata%\Roaming\Ethereum\keystore - Linux:
~/.ethereum/keystore - Mac:
~/Library/Ethereum/keystore
- Windows:
- Copy entire
keystoredirectory for backup - Restore by placing files back in
keystore
Importing Raw Private Keys
$ geth account import key.prv
# Converts hex-encoded EC private key to encrypted keyfileFAQ
How do I recover a lost password?
๐ Ethereum has no password recovery mechanism. Your funds are permanently inaccessible without both the keyfile AND password.
Can I merge multiple accounts?
No, each account remains separate. Use multi-sig wallets for shared control.
Why does account order change after updates?
Keyfile modifications may alter alphabetical sorting. Never rely on static account indices in scripts.
What's the safest backup method?
๐ Use encrypted USB drives + cloud storage with 2FA for keyfile backups.
How often should I update passwords?
Recommended every 6-12 months, especially for accounts holding significant ETH balances.