43 - Transactions vs Messages Messages
Transactions vs Messages:
-
A transaction is produced by an EOA where an external actor sends a signed data package which either:
- triggers a message to another EOA where it leads to a transfer of value or
- triggers a message to a contract account where it leads to the recipient contract account running its code
-
A message is either:
- Tx: Offchain -> Onchain
- Msg: Onchain -> Onchain
- Tx -> Triggers Msg
- Eth Transfer or Contract Code
- Msg -> Triggered by EOA Tx
- EOA -> EOA or Contract
- Msg -> Triggered by EVM Call
- Contract -> Contract