
Ethereum-Solidity Quiz Q32: What transaction types are used in Ethereum?
──────────────────────────────────────────────────────────────────── TRANSACTION TYPES ──────────────────────────────────────────────────────────────────── 1. CREATE - Deploy contract (address depends on deployer + nonce) 2. CREATE2 - Deploy contract (address is deterministic/predictable) 3. CALL - Call a function on existing contract 4. DELEGATECALL - Call using caller's storage (used by proxies internally) Transaction Types Explained 1. CREATE // Regular contract deployment new MyContract(arg1, arg2); json{ "transactionType": "CREATE", "to": null, // ◄── null means contract creation "contractAddress": "0x..." } 2. CREATE2 // Deterministic deployment via factory // Foundry does this automatically for libraries json{ "transactionType": "CREATE2", "to": "0x4e59b448...", // ◄── Factory address "contractAddress": "0x..." } 3. CALL // Function call on existing contract provider.setStablecoin(usdcAddress); json{ "transactionType": "CALL", "to": "0xa729b836...", // ◄── Contract being called
Continue reading on Dev.to
Opens in a new tab



