Forkchoice Ethereum Mainnet

Address Contract Verified

Address 0x3246ceeB611c8165Bff36619b2de0E56Fd3e8d2c
Balance 0 ETH
Nonce 1
Code Size 1814 bytes
Indexed Transactions 0 (1 on-chain, 0.8% indexed)
External Etherscan · Sourcify

Contract Bytecode

1814 bytes
0x60806040526004361061002b575f3560e01c806347e1da2a14610036578063b61d27f61461006b575f5ffd5b3661003257005b5f5ffd5b348015610041575f5ffd5b50610055610050366004610419565b610097565b60405161006291906104e6565b60405180910390f35b348015610076575f5ffd5b5061008a610085366004610564565b6102fd565b60405161006291906105e7565b60608584811480156100a857508281145b6100e85760405162461bcd60e51b815260206004820152600c60248201526b0d8cadc40dad2e6dac2e8c6d60a31b60448201526064015b60405180910390fd5b8067ffffffffffffffff81111561010157610101610600565b60405190808252806020026020018201604052801561013457816020015b606081526020019060019003908161011f5790505b5091505f5b818110156102f1575f5f8a8a8481811061015557610155610614565b905060200201602081019061016a9190610628565b6001600160a01b031689898581811061018557610185610614565b9050602002013588888681811061019e5761019e610614565b90506020028101906101b09190610641565b6040516101be929190610684565b5f6040518083038185875af1925050503d805f81146101f8576040519150601f19603f3d011682016040523d82523d5f602084013e6101fd565b606091505b509150915081610222578060405163a5fa8d2b60e01b81526004016100df91906105e7565b8085848151811061023557610235610614565b60200260200101819052508a8a8481811061025257610252610614565b90506020020160208101906102679190610628565b6001600160a01b03167fe39b605d485d947e52b62c3b5028a14d5277db44425263c74171a857071543348a8a868181106102a3576102a3610614565b905060200201358989878181106102bc576102bc610614565b90506020028101906102ce9190610641565b856040516102df9493929190610693565b60405180910390a25050600101610139565b50509695505050505050565b60605f5f866001600160a01b031686868660405161031c929190610684565b5f6040518083038185875af1925050503d805f8114610356576040519150601f19603f3d011682016040523d82523d5f602084013e61035b565b606091505b509150915081610380578060405163a5fa8d2b60e01b81526004016100df91906105e7565b866001600160a01b03167fe39b605d485d947e52b62c3b5028a14d5277db44425263c74171a85707154334878787856040516103bf9493929190610693565b60405180910390a29695505050505050565b5f5f83601f8401126103e1575f5ffd5b50813567ffffffffffffffff8111156103f8575f5ffd5b6020830191508360208260051b8501011115610412575f5ffd5b9250929050565b5f5f5f5f5f5f6060878903121561042e575f5ffd5b863567ffffffffffffffff811115610444575f5ffd5b61045089828a016103d1565b909750955050602087013567ffffffffffffffff81111561046f575f5ffd5b61047b89828a016103d1565b909550935050604087013567ffffffffffffffff81111561049a575f5ffd5b6104a689828a016103d1565b979a9699509497509295939492505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561053d57603f198786030184526105288583516104b8565b9450602093840193919091019060010161050c565b50929695505050505050565b80356001600160a01b038116811461055f575f5ffd5b919050565b5f5f5f5f60608587031215610577575f5ffd5b61058085610549565b935060208501359250604085013567ffffffffffffffff8111156105a2575f5ffd5b8501601f810187136105b2575f5ffd5b803567ffffffffffffffff8111156105c8575f5ffd5b8760208284010111156105d9575f5ffd5b949793965060200194505050565b602081525f6105f960208301846104b8565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215610638575f5ffd5b6105f982610549565b5f5f8335601e19843603018112610656575f5ffd5b83018035915067ffffffffffffffff821115610670575f5ffd5b602001915036819003821315610412575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f601f19601f850116820160808382030160408401526106d560808201856104b8565b97965050505050505056fea26469706673582212207f46278facdbd8c85f4f5a7170010e7631f575ad5b6c8f6722ab86ec052350e364736f6c634300081f0033

Verified Source Code Full Match

Compiler: v0.8.31+commit.fd3a2265 EVM: cancun Optimization: Yes (200 runs)
delegate.sol 34 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract DelegatedAccount7702 {
    error CallFailed(bytes data);

    event Executed(address indexed to, uint256 value, bytes data, bytes result);

    function execute(address to, uint256 value, bytes calldata data) external returns (bytes memory result) {
        (bool ok, bytes memory res) = to.call{value: value}(data);
        if (!ok) revert CallFailed(res);
        emit Executed(to, value, data, res);
        return res;
    }

    function executeBatch(
        address[] calldata to,
        uint256[] calldata value,
        bytes[] calldata data
    ) external returns (bytes[] memory results) {
        uint256 n = to.length;
        require(value.length == n && data.length == n, "len mismatch");
        results = new bytes[](n);

        for (uint256 i = 0; i < n; i++) {
            (bool ok, bytes memory res) = to[i].call{value: value[i]}(data[i]);
            if (!ok) revert CallFailed(res);
            results[i] = res;
            emit Executed(to[i], value[i], data[i], res);
        }
    }

    receive() external payable {}
}

Write Contract 2 functions

These functions modify contract state and require a wallet transaction to execute.

execute 0xb61d27f6
address to
uint256 value
bytes data
returns: bytes
executeBatch 0x47e1da2a
address[] to
uint256[] value
bytes[] data
returns: bytes[]

Recent Transactions

This address has 1 on-chain transactions, but only 0.8% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →