ETH Price: $1,615.71 (+1.40%)
 

Overview

ETH Balance

900.946407657184869105 ETH

Eth Value

$1,455,664.42 (@ $1,615.71/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer223029162025-04-19 12:01:358 hrs ago1745064095IN
0x004c2681...Df4B5739A
0.01218116 ETH0.000008940.34756551
Transfer223026352025-04-19 11:04:599 hrs ago1745060699IN
0x004c2681...Df4B5739A
0.0062659 ETH0.000009820.38157544
Transfer223018502025-04-19 8:26:5912 hrs ago1745051219IN
0x004c2681...Df4B5739A
0.01098434 ETH0.000008940.3473871
Transfer223017162025-04-19 7:59:5912 hrs ago1745049599IN
0x004c2681...Df4B5739A
0.00526129 ETH0.000008310.32314151
Transfer223002562025-04-19 3:06:5917 hrs ago1745032019IN
0x004c2681...Df4B5739A
0.01200944 ETH0.000010040.39021927
Transfer222991412025-04-18 23:22:5921 hrs ago1745018579IN
0x004c2681...Df4B5739A
0.00790392 ETH0.000009320.36216456
Transfer222986952025-04-18 21:53:2322 hrs ago1745013203IN
0x004c2681...Df4B5739A
0.00556034 ETH0.000010020.38944131
Transfer222979932025-04-18 19:32:2325 hrs ago1745004743IN
0x004c2681...Df4B5739A
0.02047079 ETH0.000011570.44958131
Transfer222979432025-04-18 19:22:2325 hrs ago1745004143IN
0x004c2681...Df4B5739A
0.01095979 ETH0.00000940.36556532
Transfer222970362025-04-18 16:20:3528 hrs ago1744993235IN
0x004c2681...Df4B5739A
0.03006308 ETH0.000011890.46199705
Transfer222958112025-04-18 12:13:5932 hrs ago1744978439IN
0x004c2681...Df4B5739A
0.01094261 ETH0.000011140.43289827
Transfer222955932025-04-18 11:30:1133 hrs ago1744975811IN
0x004c2681...Df4B5739A
0.02546298 ETH0.000009810.38145472
Transfer222950212025-04-18 9:34:2335 hrs ago1744968863IN
0x004c2681...Df4B5739A
0.01284913 ETH0.000009650.37497525
Transfer222946852025-04-18 8:26:3536 hrs ago1744964795IN
0x004c2681...Df4B5739A
0.05603334 ETH0.000011720.4555531
Transfer222939952025-04-18 6:08:1138 hrs ago1744956491IN
0x004c2681...Df4B5739A
0.01947275 ETH0.00000970.377058
Transfer222931882025-04-18 3:26:4741 hrs ago1744946807IN
0x004c2681...Df4B5739A
0.03306324 ETH0.000008650.33620145
Transfer222925232025-04-18 1:13:4743 hrs ago1744938827IN
0x004c2681...Df4B5739A
0.01361968 ETH0.000010140.3942151
Transfer222923982025-04-18 0:48:3543 hrs ago1744937315IN
0x004c2681...Df4B5739A
0.01661318 ETH0.000009060.35231635
Transfer222919162025-04-17 23:11:2345 hrs ago1744931483IN
0x004c2681...Df4B5739A
0.01905574 ETH0.000009190.35735253
Transfer222915632025-04-17 22:00:1146 hrs ago1744927211IN
0x004c2681...Df4B5739A
0.0950915 ETH0.000009870.3835959
Transfer222914522025-04-17 21:37:5947 hrs ago1744925879IN
0x004c2681...Df4B5739A
0.01028313 ETH0.000009050.35196341
Send Multi Sig222910332025-04-17 20:14:112 days ago1744920851IN
0x004c2681...Df4B5739A
0 ETH0.000221671.07458975
Transfer222893282025-04-17 14:31:352 days ago1744900295IN
0x004c2681...Df4B5739A
0.07223046 ETH0.000030891.2002941
Transfer222885442025-04-17 11:53:472 days ago1744890827IN
0x004c2681...Df4B5739A
0.01819248 ETH0.000007770.30224558
Transfer222875062025-04-17 8:25:352 days ago1744878335IN
0x004c2681...Df4B5739A
0.01944006 ETH0.000012770.49633044
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Deposit222910332025-04-17 20:14:112 days ago1744920851
0x004c2681...Df4B5739A
96 ETH
Transfer222908492025-04-17 19:37:232 days ago1744918643
0x004c2681...Df4B5739A
96 ETH
Deposit222841982025-04-16 21:19:352 days ago1744838375
0x004c2681...Df4B5739A
96 ETH
Transfer222838562025-04-16 20:10:473 days ago1744834247
0x004c2681...Df4B5739A
1,920 ETH
Transfer222838562025-04-16 20:10:473 days ago1744834247
0x004c2681...Df4B5739A
96 ETH
Transfer222838562025-04-16 20:10:473 days ago1744834247
0x004c2681...Df4B5739A
90.70435428 ETH
Transfer222767462025-04-15 20:23:474 days ago1744748627
0x004c2681...Df4B5739A
160 ETH
Deposit222767462025-04-15 20:23:474 days ago1744748627
0x004c2681...Df4B5739A
160 ETH
Deposit222698062025-04-14 21:07:114 days ago1744664831
0x004c2681...Df4B5739A
384 ETH
Transfer222693602025-04-14 19:37:235 days ago1744659443
0x004c2681...Df4B5739A
384 ETH
Deposit222531642025-04-12 13:25:117 days ago1744464311
0x004c2681...Df4B5739A
128 ETH
Transfer222478872025-04-11 19:47:478 days ago1744400867
0x004c2681...Df4B5739A
128 ETH
Deposit222428992025-04-11 3:06:358 days ago1744340795
0x004c2681...Df4B5739A
192 ETH
Transfer222410092025-04-10 20:46:599 days ago1744318019
0x004c2681...Df4B5739A
192 ETH
Deposit222350752025-04-10 0:56:359 days ago1744246595
0x004c2681...Df4B5739A
256 ETH
Transfer222341992025-04-09 22:00:599 days ago1744236059
0x004c2681...Df4B5739A
256 ETH
Deposit222320022025-04-09 14:39:4710 days ago1744209587
0x004c2681...Df4B5739A
160 ETH
Deposit222266992025-04-08 20:54:1110 days ago1744145651
0x004c2681...Df4B5739A
416 ETH
Transfer222266992025-04-08 20:54:1110 days ago1744145651
0x004c2681...Df4B5739A
160 ETH
Deposit222194662025-04-07 20:40:4712 days ago1744058447
0x004c2681...Df4B5739A
96 ETH
Transfer222194662025-04-07 20:40:4712 days ago1744058447
0x004c2681...Df4B5739A
416 ETH
Transfer221980172025-04-04 20:42:3515 days ago1743799355
0x004c2681...Df4B5739A
96 ETH
Deposit221910462025-04-03 21:23:3515 days ago1743715415
0x004c2681...Df4B5739A
96 ETH
Transfer221908102025-04-03 20:36:2316 days ago1743712583
0x004c2681...Df4B5739A
96 ETH
Deposit221836452025-04-02 20:33:5917 days ago1743626039
0x004c2681...Df4B5739A
64 ETH
View All Internal Transactions
Loading...
Loading

Minimal Proxy Contract for 0xe8e847cf573fc8ed75621660a36affd18c543d7e

Contract Name:
WalletSimple

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity Multiple files format)

File 1 of 4: WalletSimple.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.5;
import './TransferHelper.sol';
import './Forwarder.sol';
import './ERC20Interface.sol';

/**
 *
 * WalletSimple
 * ============
 *
 * Basic multi-signer wallet designed for use in a co-signing environment where 2 signatures are required to move funds.
 * Typically used in a 2-of-3 signing configuration. Uses ecrecover to allow for 2 signatures in a single transaction.
 *
 * The first signature is created on the operation hash (see Data Formats) and passed to sendMultiSig/sendMultiSigToken
 * The signer is determined by verifyMultiSig().
 *
 * The second signature is created by the submitter of the transaction and determined by msg.signer.
 *
 * Data Formats
 * ============
 *
 * The signature is created with ethereumjs-util.ecsign(operationHash).
 * Like the eth_sign RPC call, it packs the values as a 65-byte array of [r, s, v].
 * Unlike eth_sign, the message is not prefixed.
 *
 * The operationHash the result of keccak256(prefix, toAddress, value, data, expireTime).
 * For ether transactions, `prefix` is "ETHER".
 * For token transaction, `prefix` is "ERC20" and `data` is the tokenContractAddress.
 *
 *
 */
contract WalletSimple {
  // Events
  event Deposited(address from, uint256 value, bytes data);
  event SafeModeActivated(address msgSender);
  event Transacted(
    address msgSender, // Address of the sender of the message initiating the transaction
    address otherSigner, // Address of the signer (second signature) used to initiate the transaction
    bytes32 operation, // Operation hash (see Data Formats)
    address toAddress, // The address the transaction was sent to
    uint256 value, // Amount of Wei sent to the address
    bytes data // Data sent when invoking the transaction
  );

  event BatchTransfer(address sender, address recipient, uint256 value);
  // this event shows the other signer and the operation hash that they signed
  // specific batch transfer events are emitted in Batcher
  event BatchTransacted(
    address msgSender, // Address of the sender of the message initiating the transaction
    address otherSigner, // Address of the signer (second signature) used to initiate the transaction
    bytes32 operation // Operation hash (see Data Formats)
  );

  // Public fields
  mapping(address => bool) public signers; // The addresses that can co-sign transactions on the wallet
  bool public safeMode = false; // When active, wallet may only send to signer addresses
  bool public initialized = false; // True if the contract has been initialized

  // Internal fields
  uint256 private constant MAX_SEQUENCE_ID_INCREASE = 10000;
  uint256 constant SEQUENCE_ID_WINDOW_SIZE = 10;
  uint256[SEQUENCE_ID_WINDOW_SIZE] recentSequenceIds;

  /**
   * Set up a simple multi-sig wallet by specifying the signers allowed to be used on this wallet.
   * 2 signers will be required to send a transaction from this wallet.
   * Note: The sender is NOT automatically added to the list of signers.
   * Signers CANNOT be changed once they are set
   *
   * @param allowedSigners An array of signers on the wallet
   */
  function init(address[] calldata allowedSigners) external onlyUninitialized {
    require(allowedSigners.length == 3, 'Invalid number of signers');

    for (uint8 i = 0; i < allowedSigners.length; i++) {
      require(allowedSigners[i] != address(0), 'Invalid signer');
      signers[allowedSigners[i]] = true;
    }
    initialized = true;
  }

  /**
   * Get the network identifier that signers must sign over
   * This provides protection signatures being replayed on other chains
   * This must be a virtual function because chain-specific contracts will need
   *    to override with their own network ids. It also can't be a field
   *    to allow this contract to be used by proxy with delegatecall, which will
   *    not pick up on state variables
   */
  function getNetworkId() internal virtual pure returns (string memory) {
    return 'ETHER';
  }

  /**
   * Get the network identifier that signers must sign over for token transfers
   * This provides protection signatures being replayed on other chains
   * This must be a virtual function because chain-specific contracts will need
   *    to override with their own network ids. It also can't be a field
   *    to allow this contract to be used by proxy with delegatecall, which will
   *    not pick up on state variables
   */
  function getTokenNetworkId() internal virtual pure returns (string memory) {
    return 'ERC20';
  }

  /**
   * Get the network identifier that signers must sign over for batch transfers
   * This provides protection signatures being replayed on other chains
   * This must be a virtual function because chain-specific contracts will need
   *    to override with their own network ids. It also can't be a field
   *    to allow this contract to be used by proxy with delegatecall, which will
   *    not pick up on state variables
   */
  function getBatchNetworkId() internal virtual pure returns (string memory) {
    return 'ETHER-Batch';
  }

  /**
   * Determine if an address is a signer on this wallet
   * @param signer address to check
   * returns boolean indicating whether address is signer or not
   */
  function isSigner(address signer) public view returns (bool) {
    return signers[signer];
  }

  /**
   * Modifier that will execute internal code block only if the sender is an authorized signer on this wallet
   */
  modifier onlySigner {
    require(isSigner(msg.sender), 'Non-signer in onlySigner method');
    _;
  }

  /**
   * Modifier that will execute internal code block only if the contract has not been initialized yet
   */
  modifier onlyUninitialized {
    require(!initialized, 'Contract already initialized');
    _;
  }

  /**
   * Gets called when a transaction is received with data that does not match any other method
   */
  fallback() external payable {
    if (msg.value > 0) {
      // Fire deposited event if we are receiving funds
      Deposited(msg.sender, msg.value, msg.data);
    }
  }

  /**
   * Gets called when a transaction is received with ether and no data
   */
  receive() external payable {
    if (msg.value > 0) {
      // Fire deposited event if we are receiving funds
      Deposited(msg.sender, msg.value, msg.data);
    }
  }

  /**
   * Execute a multi-signature transaction from this wallet using 2 signers: one from msg.sender and the other from ecrecover.
   * Sequence IDs are numbers starting from 1. They are used to prevent replay attacks and may not be repeated.
   *
   * @param toAddress the destination address to send an outgoing transaction
   * @param value the amount in Wei to be sent
   * @param data the data to send to the toAddress when invoking the transaction
   * @param expireTime the number of seconds since 1970 for which this transaction is valid
   * @param sequenceId the unique sequence id obtainable from getNextSequenceId
   * @param signature see Data Formats
   */
  function sendMultiSig(
    address toAddress,
    uint256 value,
    bytes calldata data,
    uint256 expireTime,
    uint256 sequenceId,
    bytes calldata signature
  ) external onlySigner {
    // Verify the other signer
    bytes32 operationHash = keccak256(
      abi.encodePacked(
        getNetworkId(),
        toAddress,
        value,
        data,
        expireTime,
        sequenceId
      )
    );

    address otherSigner = verifyMultiSig(
      toAddress,
      operationHash,
      signature,
      expireTime,
      sequenceId
    );

    // Success, send the transaction
    (bool success, ) = toAddress.call{ value: value }(data);
    require(success, 'Call execution failed');

    emit Transacted(
      msg.sender,
      otherSigner,
      operationHash,
      toAddress,
      value,
      data
    );
  }

  /**
   * Execute a batched multi-signature transaction from this wallet using 2 signers: one from msg.sender and the other from ecrecover.
   * Sequence IDs are numbers starting from 1. They are used to prevent replay attacks and may not be repeated.
   * The recipients and values to send are encoded in two arrays, where for index i, recipients[i] will be sent values[i].
   *
   * @param recipients The list of recipients to send to
   * @param values The list of values to send to
   * @param expireTime the number of seconds since 1970 for which this transaction is valid
   * @param sequenceId the unique sequence id obtainable from getNextSequenceId
   * @param signature see Data Formats
   */
  function sendMultiSigBatch(
    address[] calldata recipients,
    uint256[] calldata values,
    uint256 expireTime,
    uint256 sequenceId,
    bytes calldata signature
  ) external onlySigner {
    require(recipients.length != 0, 'Not enough recipients');
    require(
      recipients.length == values.length,
      'Unequal recipients and values'
    );
    require(recipients.length < 256, 'Too many recipients, max 255');

    // Verify the other signer
    bytes32 operationHash = keccak256(
      abi.encodePacked(
        getBatchNetworkId(),
        recipients,
        values,
        expireTime,
        sequenceId
      )
    );

    // the first parameter (toAddress) is used to ensure transactions in safe mode only go to a signer
    // if in safe mode, we should use normal sendMultiSig to recover, so this check will always fail if in safe mode
    require(!safeMode, 'Batch in safe mode');
    address otherSigner = verifyMultiSig(
      address(0x0),
      operationHash,
      signature,
      expireTime,
      sequenceId
    );

    batchTransfer(recipients, values);
    emit BatchTransacted(msg.sender, otherSigner, operationHash);
  }

  /**
   * Transfer funds in a batch to each of recipients
   * @param recipients The list of recipients to send to
   * @param values The list of values to send to recipients.
   *  The recipient with index i in recipients array will be sent values[i].
   *  Thus, recipients and values must be the same length
   */
  function batchTransfer(
    address[] calldata recipients,
    uint256[] calldata values
  ) internal {
    for (uint256 i = 0; i < recipients.length; i++) {
      require(address(this).balance >= values[i], 'Insufficient funds');

      (bool success, ) = recipients[i].call{ value: values[i] }('');
      require(success, 'Call failed');

      emit BatchTransfer(msg.sender, recipients[i], values[i]);
    }
  }

  /**
   * Execute a multi-signature token transfer from this wallet using 2 signers: one from msg.sender and the other from ecrecover.
   * Sequence IDs are numbers starting from 1. They are used to prevent replay attacks and may not be repeated.
   *
   * @param toAddress the destination address to send an outgoing transaction
   * @param value the amount in tokens to be sent
   * @param tokenContractAddress the address of the erc20 token contract
   * @param expireTime the number of seconds since 1970 for which this transaction is valid
   * @param sequenceId the unique sequence id obtainable from getNextSequenceId
   * @param signature see Data Formats
   */
  function sendMultiSigToken(
    address toAddress,
    uint256 value,
    address tokenContractAddress,
    uint256 expireTime,
    uint256 sequenceId,
    bytes calldata signature
  ) external onlySigner {
    // Verify the other signer
    bytes32 operationHash = keccak256(
      abi.encodePacked(
        getTokenNetworkId(),
        toAddress,
        value,
        tokenContractAddress,
        expireTime,
        sequenceId
      )
    );

    verifyMultiSig(toAddress, operationHash, signature, expireTime, sequenceId);

    TransferHelper.safeTransfer(tokenContractAddress, toAddress, value);
  }

  /**
   * Execute a token flush from one of the forwarder addresses. This transfer needs only a single signature and can be done by any signer
   *
   * @param forwarderAddress the address of the forwarder address to flush the tokens from
   * @param tokenContractAddress the address of the erc20 token contract
   */
  function flushForwarderTokens(
    address payable forwarderAddress,
    address tokenContractAddress
  ) external onlySigner {
    Forwarder forwarder = Forwarder(forwarderAddress);
    forwarder.flushTokens(tokenContractAddress);
  }

  /**
   * Do common multisig verification for both eth sends and erc20token transfers
   *
   * @param toAddress the destination address to send an outgoing transaction
   * @param operationHash see Data Formats
   * @param signature see Data Formats
   * @param expireTime the number of seconds since 1970 for which this transaction is valid
   * @param sequenceId the unique sequence id obtainable from getNextSequenceId
   * returns address that has created the signature
   */
  function verifyMultiSig(
    address toAddress,
    bytes32 operationHash,
    bytes calldata signature,
    uint256 expireTime,
    uint256 sequenceId
  ) private returns (address) {
    address otherSigner = recoverAddressFromSignature(operationHash, signature);

    // Verify if we are in safe mode. In safe mode, the wallet can only send to signers
    require(!safeMode || isSigner(toAddress), 'External transfer in safe mode');

    // Verify that the transaction has not expired
    require(expireTime >= block.timestamp, 'Transaction expired');

    // Try to insert the sequence ID. Will revert if the sequence id was invalid
    tryInsertSequenceId(sequenceId);

    require(isSigner(otherSigner), 'Invalid signer');

    require(otherSigner != msg.sender, 'Signers cannot be equal');

    return otherSigner;
  }

  /**
   * Irrevocably puts contract into safe mode. When in this mode, transactions may only be sent to signing addresses.
   */
  function activateSafeMode() external onlySigner {
    safeMode = true;
    SafeModeActivated(msg.sender);
  }

  /**
   * Gets signer's address using ecrecover
   * @param operationHash see Data Formats
   * @param signature see Data Formats
   * returns address recovered from the signature
   */
  function recoverAddressFromSignature(
    bytes32 operationHash,
    bytes memory signature
  ) private pure returns (address) {
    require(signature.length == 65, 'Invalid signature - wrong length');

    // We need to unpack the signature, which is given as an array of 65 bytes (like eth.sign)
    bytes32 r;
    bytes32 s;
    uint8 v;

    // solhint-disable-next-line
    assembly {
      r := mload(add(signature, 32))
      s := mload(add(signature, 64))
      v := and(mload(add(signature, 65)), 255)
    }
    if (v < 27) {
      v += 27; // Ethereum versions are 27 or 28 as opposed to 0 or 1 which is submitted by some signing libs
    }

    // protect against signature malleability
    // S value must be in the lower half orader
    // reference: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/051d340171a93a3d401aaaea46b4b62fa81e5d7c/contracts/cryptography/ECDSA.sol#L53
    require(
      uint256(s) <=
        0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
      "ECDSA: invalid signature 's' value"
    );

    // note that this returns 0 if the signature is invalid
    // Since 0x0 can never be a signer, when the recovered signer address
    // is checked against our signer list, that 0x0 will cause an invalid signer failure
    return ecrecover(operationHash, v, r, s);
  }

  /**
   * Verify that the sequence id has not been used before and inserts it. Throws if the sequence ID was not accepted.
   * We collect a window of up to 10 recent sequence ids, and allow any sequence id that is not in the window and
   * greater than the minimum element in the window.
   * @param sequenceId to insert into array of stored ids
   */
  function tryInsertSequenceId(uint256 sequenceId) private onlySigner {
    // Keep a pointer to the lowest value element in the window
    uint256 lowestValueIndex = 0;
    // fetch recentSequenceIds into memory for function context to avoid unnecessary sloads
    uint256[SEQUENCE_ID_WINDOW_SIZE] memory _recentSequenceIds = recentSequenceIds;
    for (uint256 i = 0; i < SEQUENCE_ID_WINDOW_SIZE; i++) {
      require(_recentSequenceIds[i] != sequenceId, 'Sequence ID already used');

      if (_recentSequenceIds[i] < _recentSequenceIds[lowestValueIndex]) {
        lowestValueIndex = i;
      }
    }

    // The sequence ID being used is lower than the lowest value in the window
    // so we cannot accept it as it may have been used before
    require(
      sequenceId > _recentSequenceIds[lowestValueIndex],
      'Sequence ID below window'
    );

    // Block sequence IDs which are much higher than the lowest value
    // This prevents people blocking the contract by using very large sequence IDs quickly
    require(
      sequenceId <=
        (_recentSequenceIds[lowestValueIndex] + MAX_SEQUENCE_ID_INCREASE),
      'Sequence ID above maximum'
    );

    recentSequenceIds[lowestValueIndex] = sequenceId;
  }

  /**
   * Gets the next available sequence ID for signing when using executeAndConfirm
   * returns the sequenceId one higher than the highest currently stored
   */
  function getNextSequenceId() public view returns (uint256) {
    uint256 highestSequenceId = 0;
    for (uint256 i = 0; i < SEQUENCE_ID_WINDOW_SIZE; i++) {
      if (recentSequenceIds[i] > highestSequenceId) {
        highestSequenceId = recentSequenceIds[i];
      }
    }
    return highestSequenceId + 1;
  }
}

File 2 of 4: ERC20Interface.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.5;

/**
 * Contract that exposes the needed erc20 token functions
 */

abstract contract ERC20Interface {
  // Send _value amount of tokens to address _to
  function transfer(address _to, uint256 _value)
    public
    virtual
    returns (bool success);

  // Get the account balance of another account with address _owner
  function balanceOf(address _owner)
    public
    virtual
    view
    returns (uint256 balance);
}

File 3 of 4: Forwarder.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.5;
import './TransferHelper.sol';
import './ERC20Interface.sol';

/**
 * Contract that will forward any incoming Ether to the creator of the contract
 *
 */
contract Forwarder {
  // Address to which any funds sent to this contract will be forwarded
  address public parentAddress;
  event ForwarderDeposited(address from, uint256 value, bytes data);

  /**
   * Initialize the contract, and sets the destination address to that of the creator
   */
  function init(address _parentAddress) external onlyUninitialized {
    parentAddress = _parentAddress;
    uint256 value = address(this).balance;

    if (value == 0) {
      return;
    }

    (bool success, ) = parentAddress.call{ value: value }('');
    require(success, 'Flush failed');
    // NOTE: since we are forwarding on initialization,
    // we don't have the context of the original sender.
    // We still emit an event about the forwarding but set
    // the sender to the forwarder itself
    emit ForwarderDeposited(address(this), value, msg.data);
  }

  /**
   * Modifier that will execute internal code block only if the sender is the parent address
   */
  modifier onlyParent {
    require(msg.sender == parentAddress, 'Only Parent');
    _;
  }

  /**
   * Modifier that will execute internal code block only if the contract has not been initialized yet
   */
  modifier onlyUninitialized {
    require(parentAddress == address(0x0), 'Already initialized');
    _;
  }

  /**
   * Default function; Gets called when data is sent but does not match any other function
   */
  fallback() external payable {
    flush();
  }

  /**
   * Default function; Gets called when Ether is deposited with no data, and forwards it to the parent address
   */
  receive() external payable {
    flush();
  }

  /**
   * Execute a token transfer of the full balance from the forwarder token to the parent address
   * @param tokenContractAddress the address of the erc20 token contract
   */
  function flushTokens(address tokenContractAddress) external onlyParent {
    ERC20Interface instance = ERC20Interface(tokenContractAddress);
    address forwarderAddress = address(this);
    uint256 forwarderBalance = instance.balanceOf(forwarderAddress);
    if (forwarderBalance == 0) {
      return;
    }

    TransferHelper.safeTransfer(
      tokenContractAddress,
      parentAddress,
      forwarderBalance
    );
  }

  /**
   * Flush the entire balance of the contract to the parent address.
   */
  function flush() public {
    uint256 value = address(this).balance;

    if (value == 0) {
      return;
    }

    (bool success, ) = parentAddress.call{ value: value }('');
    require(success, 'Flush failed');
    emit ForwarderDeposited(msg.sender, value, msg.data);
  }
}

File 4 of 4: TransferHelper.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity >=0.7.5;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"msgSender","type":"address"},{"indexed":false,"internalType":"address","name":"otherSigner","type":"address"},{"indexed":false,"internalType":"bytes32","name":"operation","type":"bytes32"}],"name":"BatchTransacted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BatchTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"msgSender","type":"address"}],"name":"SafeModeActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"msgSender","type":"address"},{"indexed":false,"internalType":"address","name":"otherSigner","type":"address"},{"indexed":false,"internalType":"bytes32","name":"operation","type":"bytes32"},{"indexed":false,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Transacted","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"activateSafeMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"forwarderAddress","type":"address"},{"internalType":"address","name":"tokenContractAddress","type":"address"}],"name":"flushForwarderTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getNextSequenceId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"allowedSigners","type":"address[]"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"isSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"sequenceId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"sendMultiSig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"sequenceId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"sendMultiSigBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"tokenContractAddress","type":"address"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"sequenceId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"sendMultiSigToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

 Latest 25 blocks (From a total of 60 blocks with 2.39 Ether produced)

Block Transaction Difficulty Gas Used Reward
223029172025-04-19 12:01:478 hrs ago1745064107290.00 TH987,260 (2.75%)
0.001934187977700483 ETH
222652092025-04-14 5:42:475 days ago1744609367350.00 TH1,430,007 (3.98%)
0.002669778560776842 ETH
222651892025-04-14 5:38:475 days ago1744609127240.00 TH1,651,342 (4.59%)
0.002754730279747946 ETH
222573882025-04-13 3:33:476 days ago1744515227550.00 TH3,725,445 (10.38%)
0.008461474156392815 ETH
222551072025-04-12 19:55:477 days ago1744487747570.00 TH3,657,207 (10.17%)
0.005239137579557427 ETH
222498982025-04-12 2:30:477 days ago1744425047540.00 TH2,952,816 (8.25%)
0.0040367905113 ETH
218175802025-02-10 17:22:1168 days ago1739208131460.00 TH3,712,167 (10.33%)
0.007690487736536877 ETH
218105002025-02-09 17:38:1169 days ago1739122691320.00 TH1,377,674 (3.85%)
0.006218197770157143 ETH
217937312025-02-07 9:27:1171 days ago1738920431430.00 TH2,412,287 (6.73%)
0.005622225958173726 ETH
217793782025-02-05 9:24:1173 days ago1738747451310.00 TH2,860,887 (7.99%)
0.005731196163086937 ETH
217252802025-01-28 20:02:1181 days ago1738094531520.00 TH4,073,088 (13.56%)
0.008082480467217487 ETH
215535462025-01-04 20:36:35105 days ago1736022995540.00 TH3,952,789 (13.18%)
0.003069858254578485 ETH
213602912024-12-08 20:53:59131 days ago1733691239640.00 TH3,625,869 (12.09%)
0.007613410075848052 ETH
213372672024-12-05 15:43:59135 days ago1733413439620.00 TH4,236,819 (14.12%)
0.015455995970172407 ETH
209865302024-10-17 16:38:23184 days ago1729183103540.00 TH2,374,828 (7.92%)
0.016285421941999296 ETH
209822512024-10-17 2:18:23184 days ago1729131503380.00 TH1,742,538 (5.81%)
0.0042787405980666 ETH
209709462024-10-15 12:24:23186 days ago17289950632010.00 TH10,194,739 (33.98%)
0.017142775560941923 ETH
209418032024-10-11 10:32:23190 days ago1728642743590.00 TH3,439,265 (11.46%)
0.005102057326561341 ETH
209359132024-10-10 14:49:23191 days ago17285717631180.00 TH5,309,500 (17.70%)
0.011895205243577976 ETH
209296472024-10-09 17:51:47192 days ago17284963071040.00 TH8,884,570 (29.62%)
0.037115493811229095 ETH
209225062024-10-08 17:58:23193 days ago17284103031230.00 TH8,152,327 (27.17%)
0.02805416693048328 ETH
209178882024-10-08 2:32:23193 days ago1728354743730.00 TH3,629,184 (12.10%)
0.009085325948110828 ETH
209004852024-10-05 16:19:23196 days ago1728145163410.00 TH2,960,166 (9.87%)
0.004630470721762691 ETH
208879722024-10-03 22:29:23197 days ago1727994563970.00 TH4,643,338 (15.48%)
0.00360733050486903 ETH
205750422024-08-21 5:55:47241 days ago1724219747580.00 TH6,193,743 (20.65%)
0.002039084708021174 ETH
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Latest 25 from a total of 42333 withdrawals (15,506.274603248 ETH withdrawn)

Validator Index Block Amount
1787231223054252025-04-19 20:25:5921 mins ago17450943590.019213466 ETH
1787230223054252025-04-19 20:25:5921 mins ago17450943590.01925313 ETH
1785448223053272025-04-19 20:06:2340 mins ago17450931830.019240815 ETH
1785447223053272025-04-19 20:06:2340 mins ago17450931830.019236809 ETH
1785445223053272025-04-19 20:06:2340 mins ago17450931830.019252099 ETH
1783818223052302025-04-19 19:46:471 hr ago17450920070.019223595 ETH
1783817223052292025-04-19 19:46:231 hr ago17450919830.019224904 ETH
1783816223052292025-04-19 19:46:231 hr ago17450919830.019230391 ETH
1783815223052292025-04-19 19:46:231 hr ago17450919830.019218754 ETH
1782717223051672025-04-19 19:33:591 hr ago17450912390.019211929 ETH
1782716223051662025-04-19 19:33:471 hr ago17450912270.019237201 ETH
1782715223051662025-04-19 19:33:471 hr ago17450912270.019227874 ETH
1782714223051662025-04-19 19:33:471 hr ago17450912270.019214022 ETH
1782712223051662025-04-19 19:33:471 hr ago17450912270.019202865 ETH
1780518223050722025-04-19 19:14:591 hr ago17450900990.063990393 ETH
1780517223050722025-04-19 19:14:591 hr ago17450900990.019271235 ETH
1780516223050722025-04-19 19:14:591 hr ago17450900990.019249574 ETH
1780515223050722025-04-19 19:14:591 hr ago17450900990.019264501 ETH
1780514223050712025-04-19 19:14:471 hr ago17450900870.019228714 ETH
1780513223050712025-04-19 19:14:471 hr ago17450900870.019251705 ETH
1780512223050712025-04-19 19:14:471 hr ago17450900870.019267655 ETH
1777001223048652025-04-19 18:33:232 hrs ago17450876030.019251082 ETH
1777000223048652025-04-19 18:33:232 hrs ago17450876030.019242054 ETH
1776445223048342025-04-19 18:27:112 hrs ago17450872310.01925825 ETH
1776444223048342025-04-19 18:27:112 hrs ago17450872310.019248446 ETH
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.