Contract creation transaction

There are a few essential parameters that are required when creating an account. These parameters are listed as follows:

  • Sender
  • Original transactor (transaction originator)
  • Available gas
  • Gas price
  • Endowment, which is the amount of ether allocated
  • A byte array of an arbitrary length
  • Initialization EVM code
  • Current depth of the message call/contract-creation stack (current depth means the number of items that are already there in the stack)

Addresses generated as a result of contract creation transaction are 160-bit in length. Precisely, as defined in the yellow paper, they are the rightmost 160-bits of the Keccak hash of the RLP encoding of the structure containing only the sender and the nonce. Initially, the ...

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.