How do contracts have addresses and how do they run code? : ethereum

WazirX Referral Program Refer and earn 50% commission of every trade. Be your own Boss! Buy & sell Crypto in minutes Join the world's largest crypto exchange Register at Binance

How do contracts have addresses and how do they run code? : ethereum


I am reading mastering ethereum and read a part that I do not understand:

Contracts have addresses, just like EOAs. Contracts can also send and receive ether, just like EOAs. However, when a transaction destination is a contract address, it causes that contract to run in the EVM,

I thought contracts are distributed and can be executed by any node on the ethereum network, but from the above, if contracts have addresses it means they only resides in one place. Right?

And what if the node, that corresponds to the contract is offline, how will the code execute?



Source link

Register at Binance