0

When I deploy a contract, a contract address is created. At this time, can I set the value of address to the value I want?

Additionally, can anyone explain how the contract address is determined?

imelon2
  • 528
  • 3
  • 13

1 Answers1

1

No, I don't think that's possible. Generally, the contract address is determined from the sender's address and the number of transactions sent from that address, which is the nonce. But you can also create a contract using the new opcode, CREATE2, that was added in EIP-1014.

See:

How is the address of an Ethereum contract computed?

https://chainstack.com/deploying-a-deterministic-contract-on-ethereum/

Yongjian P.
  • 4,170
  • 1
  • 3
  • 10