Deploy contract with address like Chi Token


I just wonder how to deploy a contract with address like Chi Token (0x000000000000 + something like 4946c0e9f43f4dee607b0ef1fa1c":

Hi, welcome! :wave:

Maybe you can have a look at this library contract: Create2.sol | OpenZeppelin, and this: Precompute Contract Address with Create2 | Solidity by Example

And for more details, please look at this EIP-1014 for more information.

1 Like

Aside from Create2, it's also possible to use what is often referred to as "Nick's Method", described in EIP1820: Deployment Method. This is more complicated to set up though.

1 Like