Dorokhov.codes
02. Smart-contracts
Since a contract account does not have a private key, it cannot initiate a transaction.
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, using the transaction, and the transaction’s data, as its input. In addition to ether, transactions can contain data indicating which specific function in the contract to run and what parameters to pass to that function. In this way, transactions can call functions within contracts.
IDE
Remix is native IDE for Web3 Development.
Using this IDE we can easily deploy our contract on the blockchain.
Creating the contract on the blockchain
Registering a contract on the blockchain involves creating a special transaction whose
destination is the address 0x0000000000000000000000000000000000000000
, also
known as the zero address. The zero address is a special address that tells the Ethereum blockchain
that you want to register a contract.