OP Sepolia Testnet

Contract

0x2Fe8e377679564FbE4f4Eb7b29f7ABf39ad2f2d3

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Implementation

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at sepolia-optimism.etherscan.io on 2025-01-14
*/

// File: contracts/Implementation.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;

interface IERC20 {
    function transfer(address recipient, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
}

contract  Implementation{

    function withdraw(address erc20TokenAddress, address recipient) external {
        // the target erc20 token address
        IERC20 erc20Token = IERC20(erc20TokenAddress);

        // get balance
        uint256 balance = erc20Token.balanceOf(address(this));

        // transfer
        if (balance > 0) {
            require(erc20Token.transfer(recipient, balance), "Transfer failed");
        }
    }
}

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"erc20TokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50610256806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063f940e38514610030575b600080fd5b61004361003e3660046101af565b610045565b005b6040516370a0823160e01b815230600482015282906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561008957600080fd5b505afa15801561009d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100c19190610208565b9050801561018d5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905283169063a9059cbb90604401602060405180830381600087803b15801561011357600080fd5b505af1158015610127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014b91906101e1565b61018d5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640160405180910390fd5b50505050565b80356001600160a01b03811681146101aa57600080fd5b919050565b600080604083850312156101c1578182fd5b6101ca83610193565b91506101d860208401610193565b90509250929050565b6000602082840312156101f2578081fd5b81518015158114610201578182fd5b9392505050565b600060208284031215610219578081fd5b505191905056fea26469706673582212206e92ec8cd96a087eb89911e96f38a4141bd39d985ca823bfe84317bf5296d59e64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063f940e38514610030575b600080fd5b61004361003e3660046101af565b610045565b005b6040516370a0823160e01b815230600482015282906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561008957600080fd5b505afa15801561009d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100c19190610208565b9050801561018d5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905283169063a9059cbb90604401602060405180830381600087803b15801561011357600080fd5b505af1158015610127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014b91906101e1565b61018d5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640160405180910390fd5b50505050565b80356001600160a01b03811681146101aa57600080fd5b919050565b600080604083850312156101c1578182fd5b6101ca83610193565b91506101d860208401610193565b90509250929050565b6000602082840312156101f2578081fd5b81518015158114610201578182fd5b9392505050565b600060208284031215610219578081fd5b505191905056fea26469706673582212206e92ec8cd96a087eb89911e96f38a4141bd39d985ca823bfe84317bf5296d59e64736f6c63430008040033

Deployed Bytecode Sourcemap

282:450:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;315:414;;;;;;:::i;:::-;;:::i;:::-;;;542:35;;-1:-1:-1;;;542:35:0;;571:4;542:35;;;1114:51:1;469:17:0;;442;;-1:-1:-1;;;;;542:20:0;;;;;1087:18:1;;542:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;524:53;-1:-1:-1;615:11:0;;611:111;;651:39;;-1:-1:-1;;;651:39:0;;-1:-1:-1;;;;;1368:32:1;;;651:39:0;;;1350:51:1;1417:18;;;1410:34;;;651:19:0;;;;;1323:18:1;;651:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;643:67;;;;-1:-1:-1;;;643:67:0;;1657:2:1;643:67:0;;;1639:21:1;1696:2;1676:18;;;1669:30;-1:-1:-1;;;1715:18:1;;;1708:45;1770:18;;643:67:0;;;;;;;;315:414;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:270::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:2;;;342:6;334;327:22;289:2;370:29;389:9;370:29;:::i;:::-;360:39;;418:38;452:2;441:9;437:18;418:38;:::i;:::-;408:48;;279:183;;;;;:::o;467:297::-;534:6;587:2;575:9;566:7;562:23;558:32;555:2;;;608:6;600;593:22;555:2;645:9;639:16;698:5;691:13;684:21;677:5;674:32;664:2;;725:6;717;710:22;664:2;753:5;545:219;-1:-1:-1;;;545:219:1:o;769:194::-;839:6;892:2;880:9;871:7;867:23;863:32;860:2;;;913:6;905;898:22;860:2;-1:-1:-1;941:16:1;;850:113;-1:-1:-1;850:113:1:o

Swarm Source

ipfs://6e92ec8cd96a087eb89911e96f38a4141bd39d985ca823bfe84317bf5296d59e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading

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.