Ethereum.
process of the UTXO model, it is executed before the transaction is written to the block. If the contract returns false or an exception occurs, the transaction will not be written to the block. The contract triggered by the transaction call is called when the transaction is written to the block. At