How to deploy the contract on BSC and Ethereum and receive the same address?

Нow is it possible for this contracts to have the same address?

Hey @New! The address of a contract is calculated based on the address of the deployer and a few other parameters (depending on whether the deployer is an externally-owned account or a contract, and depending whether it’s created using CREATE or CREATE2 for the latter).

To make a long story short, if you create a fresh address, seed it with ETH in two different networks, and deploy a contract from it on both networks as the first tx, then the deployed contracts will have the same address.

Check out this answer for more info. And this one for a reproducible method (aka Nick’s method) for deploying the same contract on the same address on multiple networks.

1 Like