Types of accounts on Ethereum

Types of accounts on Ethereum

If you’ve used Ethereum, you know what an Ethereum account is. Your account address looks something like this:

????????????????????????????????????????????????????????????????????????????????????

You may have used your Ethereum account to buy ETH, DAI, NFTs, and much more.

But did you know that there are ?????? ?????????????????? ?????????? of accounts on Ethereum?

Before we explain what the two types are, it’s important to understand how Ethereum stores state

So let's start there...

The Ethereum blockchain stores state as a mapping between Ethereum ?????????????????? and the ?????????? associated with each address

An “??????????????” is the object which contains the address and the state associated with that address.

Address is intuitive. But what exactly do we mean by “?????????????? ??????????”?

Well, it depends on the type of account it is. There are two types of accounts on Ethereum:

1) ???????????????????? ?????????? ?????????????? (EOA)

2) ???????????????? ?????????????? (CA)

The Metamask account that you use to sign transactions is an Externally Owned Account

EOA’s are controlled by ?????????????? ????????.

A contract account, on the other hand, is a ?????????? ????????????????. In other words, every smart contract on Ethereum is an account.

An Externally Owned Account only stores ?????? things:

1) ??????????????

2) ??????????

We all know what a balance is. For example, if my Ethereum account has 10 Ether in it, then the EOA would store 10 in the “balance” field.

What’s a ???????????

A nonce is like a ??????????????. It keeps track of the number of transactions that have been executed from that account.

So if my Ethereum account has completed 23 transactions, then the nonce is 23.

A Contract Account, on the other hand, stores ???????? things:

1) balance

2) nonce

3) ???????? ????????

4) ?????????????? ????????

Just like a regular Ethereum account (i.e. EOA), a Contract Account also keeps track of the balance and nonce

In addition to that, it stores the ???????? ???? ?????? ?????????? ???????????????? ???????? and a ???????? ???? ?????? ???????? ???????? of the Merkle Patricia trie.

Explaining a Merkle Patricia tree is out of the scope of this thread, but it is enough for you to understand that the trie encodes the ?????????????? ???????????????? ???? ?????? ?????????? ???????????????? ??????????????.

In simpler terms, the storage hash is effectively a ???????? ???? ?????? ?????????? ????????????????’?? ????????.

So when we ???????????? a smart contract onto Ethereum, a new Ethereum account is created and this account stores the ?????????????? of the contract, the ?????????? of the contract, the ????????, and the ????????.

That’s all folks. Hopefully you understand Ethereum a tiny bit better.

要查看或添加评论,请登录

Cesar Gatica的更多文章

  • Do you know what Computer Vision is?

    Do you know what Computer Vision is?

    Is the field of computer science that focuses in identify and understand objects and people in images and videos. If AI…

  • Crypto Market 2024 events.

    Crypto Market 2024 events.

    VanEck predicts 15 events that will happen in the #crypto market in 2024: 1. The US will experience an economic…

    1 条评论
  • 5 Phases of The Bitcoin Halving

    5 Phases of The Bitcoin Halving

    1. Pre-Halving period Approximately 5.

  • 1$ DOLLAR GUIDE TO SOLANA

    1$ DOLLAR GUIDE TO SOLANA

    Now we will venture into the Solana ecosystem, with just ONE dollar of capital. Showing YOU the user experience.

  • Polygon #zkEVM

    Polygon #zkEVM

    Since Polygon Labs is set to launch its #zkEVM (Zero Knowledge Ethereum Virtual Machine) mainnet very soon, I thought I…

  • A Really brief explanation on Fibonacci Retracements

    A Really brief explanation on Fibonacci Retracements

    Fibonacci retracements are a popular technical analysis tool used by traders to identify potential levels of support…

  • The most innovative projects coming to Arbitrum

    The most innovative projects coming to Arbitrum

    (huge opportunities you can't miss out on) Note: If you do not know what Arbitrum or layer 2 is please refer to this…

  • AI Types and tools you need to know.

    AI Types and tools you need to know.

    I find the advances in Artificial Intelligence (AI) impressive. There are already many more applications than you can…

  • GPT-3, AI and the future is awesome

    GPT-3, AI and the future is awesome

    The world of artificial intelligence has been rapidly evolving, and one of the most noteworthy advancements is GPT-3…

社区洞察

其他会员也浏览了