Solidity Contract Address Recovery

Last modified: 2023-09-30

Blockchain Ethereum

Create a Contract for Recovery Address

This contract can compute the contract address which has been lost.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract ContractRecovery {

    constructor(address _creatorAddress) {
        address lostAddress = address(uint160(uint256(keccak256(abi.encodePacked(bytes1(0xd6), bytes1(0x94), address(_creatorAddress), bytes1(0x01))))));
        // some code here ...

Another way is to use Etherscan transaction history.