User Avatar

Juan David 🚢

♦️Understanding Ethereum

2y ago

Writing about Ethereum, education and open source. Co-founder at ethkipu.org

Ethereum Accounts: Remote Controls and TVs
by juandav.eth

Depict yourself on a living room, a remote control and a TV. The remote control is in your hand, changing channels. The TV responds to these signals. This is how Externally Owned Accounts (EOAs) and Contract Accounts work in Ethereum. Let me explain.

Externally Owned Accounts (EOAs): Remote Controls

An EOA is like a remote control, powered by a private key (the battery). You use it to send signals (transactions). EOAs are controlled by you. When you send Ether or interact with a smart contract, you’re pressing buttons on your remote.

Each transaction is signed by your private key, ensuring only you can use it.

Contract Accounts: TVs

A Contract Account is like your TV. It doesn’t act on its own but responds to signals from EOAs. When an EOA sends a transaction to a Contract Account, it’s like pressing a button to change the channel. The Contract Account executes the actions defined in its smart contract, like the TV following commands.

Contract Accounts have code that defines their behavior, similar to a TV’s internal circuitry.

The Living Room

EOAs (remote controls) and Contract Accounts (TVs) rely on each other. Without EOAs, Contract Accounts wouldn’t receive commands. Without Contract Accounts, EOAs’ signals would be pointless.

Together, they create a functional Ethereum ecosystem, much like the interaction between a remote and a TV in your living room.