64

Cointelegraph has recently written about 'EOA' in relation with contracts and accounts.

As an EOA, the state simply stores the account's balance in ether and a sequence number is used to prevent transaction replay attacks. On the other hand, it stores the contract's code and its storage in a key-value database.

What is an 'EOA'?

5 Answers 5

55

This is an Externally Owned Account, so your normal Ethereum address, not a wallet contract.

In general, there are two types of accounts: externally owned accounts, controlled by private keys, and contract accounts, controlled by their contract code.

https://ethereum.org/en/whitepaper/#ethereum-accounts

16

Ethereum accounts are generally of two types-

Externally Owned Accounts

  • Managed by Human
  • Account creation incurs no cost
  • Can transfer Ether (ETH) to other accounts, but cannot create smart contracts
  • Can send messages (i.e. send transactions) to smart contracts

Contract Accounts

  • Managed by Code (e.g. Solidity)
  • Account creation might incur cost
  • Can do both- transfer Ether as well as create Smart Contract accounts

Reference: Understanding Ethereum Accounts

11

It is an Externally Owned Account controlled by a public/private key pair. There are also contract addresses, which are controlled by the code written inside the contract.

7

I just published both technical and non-technical introductions to Ethereum accounts this week.

An Ethereum account is a private-public keypair that can be mapped to an address on the blockchain.

  1. If the private key is known and controlled by someone, it's an "owned" or "externally owned" account.
  2. Otherwise, if the private key is not known, and only an address exists, we are talking about smart-contract accounts.

Here is the full explanation with some code examples:

3
  • EOAs and Contract accounts are indistinguishable by looking at their addresses.
  • Contract accounts are the only type of account with associated bytecode.
  • Private keys are generated only for EOAs while CAs are controlled by the contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.