Blockchain Academy
We'll get together for networking with people interested in Blockchain including developers and anyone curious about Blockchain.

CA (Contract Account)

Ethereum constitutes a state by an object called Account, and this state continues to change and is written to the block. Here, Account has 20 bytes of Address and State Transition, and Account has two kinds of Contract Accounts like Externally Owned Account (EOA) and Smart Contract like normal user account. Account consists of the following four fields.

  • Nonce: A kind of counter concept that allows each transaction to be processed only once. In the case of EOA, it indicates the number of transactions sent by the corresponding EOA. In case of CA, it means the number of contracts generated by this CA.
  • Ether Balance: Current account balance of the account
  • Contract Code: This is the code that the account will execute, and for EOA it will be treated as an empty string
  • Storage: This is the storage space of the account, which is empty by default.

As like EOA, CA can send and receive the ether with other accounts. However, the main difference with EOA is that there is no private key, it is controlled by code, and you can store the code. It also has the feature that it can not send new transactions by itself and can only send internal messages to other contracts. CAs are created when you deploy smart contracts.