Contract Creation

In Ethereum, a contract creation transaction is a special type of transaction that creates a new smart contract on the blockchain. When a contract creation transaction is executed, it includes the bytecode of the smart contract that is to be created. This bytecode is then executed by the Ethereum Virtual Machine (EVM) to create a new smart contract.

Contract creation transactions are identified by having an empty to field in the transaction data. This distinguishes them from normal transactions, which have a recipient address specified in the to field.

Once the smart contract has been created, it is assigned a unique address on the blockchain. This address is derived from the address of the account that created the contract and a nonce value. The nonce is a counter that is incremented each time a contract creation transaction is executed by that account. This ensures that each smart contract created by an account has a unique address.

Once the smart contract has been created, it can be called by other transactions on the blockchain. These transactions can execute functions defined in the smart contract's code, which can modify the contract's state or interact with other contracts on the blockchain.

From: 0x1234567890123456789012345678901234567890
To: 0x0000000000000000000000000000000000000000
Value: 0 ETH
Gas Limit: 3000000
Gas Price: 50 Gwei
Nonce: 1

Data:
60606040526000805460ff19169055341561001757600080fd5b5061018b806100276000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806319db803d1161004f578063a9059cbb11610082578063ee8f52b3146100b1578063ee8f52b314610132578063f2fde38b14610165578063f8b2cb4f1461019c578063fb9ec8de146101c8578063ffd49c84146101ed575b600080fd5b61005c6004803603602081101561006257600080fd5b8101908080359060200190929190505050610240565b005b6100766004803603604081101561008e57600080fd5b81019080803590602001909291905050506102b3565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100d15780820151818401526020810190506100b6565b50505050905090810190601f1680156100fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100c06004803603604081101561011b57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061032d565b604051808215151515815260200191505060405180910390f35b6100c06004803603602081101561018457600080fd5b810190808035906020019092919080359060200190929190505050610339565b6040518082815260200191505060405180910390f35b60008090505b82518110156101a9578281815181106101ad57fe5b90602001906020020151818101919091526040016000205490508051908101604052602081019050602083039250610185565b505050905090810190601f1680156101d65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60008190505b848110156101e95780820151818401526020810190506101ce565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b60008090505b8281101561023d57808201518382015260200161022b565b506001600160a01b0381351690602001356103b9565b828001600101855582156103b9579182015b828111156103b957825182559160200191906001

Last updated