ETH Price: $2,142.68 (-1.98%)

Contract

0x7B2A2d6Da5f63cf4CF4e9bE99Fc422a2f1aC3785
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Sweep721224434802025-05-09 4:14:47314 days ago1746764087IN
0x7B2A2d6D...2f1aC3785
0 ETH0.0002591.47997581
Sweep1155224434562025-05-09 4:09:47314 days ago1746763787IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000101631.7
Sweep721224360292025-05-08 3:02:23315 days ago1746673343IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000663621.7
Sweep1155224359942025-05-08 2:55:23315 days ago1746672923IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000704931.5
Sweep1155221004282025-03-22 5:47:23362 days ago1742622443IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000127840.92698302
Sweep721221003772025-03-22 5:36:59362 days ago1742621819IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000160220.91540305
Sweep721221003602025-03-22 5:33:35362 days ago1742621615IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000349390.93466973
Sweep721221003312025-03-22 5:27:47362 days ago1742621267IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000335890.89858795
Sweep721221003242025-03-22 5:26:23362 days ago1742621183IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000068740.90900239
Sweep721221002062025-03-22 5:02:47362 days ago1742619767IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000339560.90834637
Sweep721221000312025-03-22 4:27:47362 days ago1742617667IN
0x7B2A2d6D...2f1aC3785
0 ETH0.000341820.87447284

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
SweepNFTs

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 500 runs

Other Settings:
cancun EvmVersion
pragma solidity ^0.8.0;

interface IERC721 {
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external;
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
}

interface IERC1155 {
    function safeBatchTransferFrom(address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external;
    function setApprovalForAll(address _operator, bool _approved) external;
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
}

// Create a contract for the receiver to simplify approval process
contract SweepNFTs {

    address public sweepTo;

    constructor(address _to) {
        sweepTo = _to;
    }

    function sweep721(address _nft, address _from, uint256[] calldata _ids) public {
        IERC721 nft = IERC721(_nft);
        require(nft.isApprovedForAll(_from, address(this)), "not approved");
        for (uint i=0; i < _ids.length; i++) {
            nft.safeTransferFrom(_from, sweepTo, _ids[i]);
        }
    }

    function sweep1155(address _nft, address _from, uint256[] calldata _ids, uint256[] calldata _values) public {
        IERC1155 nft = IERC1155(_nft);
        require(nft.isApprovedForAll(_from, address(this)), "not approved");
        nft.safeBatchTransferFrom(_from, sweepTo, _ids, _values, "");
    }

}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"sweep1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"sweep721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sweepTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561000f575f80fd5b5060405161061b38038061061b83398101604081905261002e91610052565b5f80546001600160a01b0319166001600160a01b039290921691909117905561007f565b5f60208284031215610062575f80fd5b81516001600160a01b0381168114610078575f80fd5b9392505050565b61058f8061008c5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063462c2d52146100435780634aef18ac146100585780637ea219a51461006b575b5f80fd5b610056610051366004610391565b610099565b005b6100566100663660046103ee565b610213565b5f5461007d906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b60405163e985e9c560e01b81526001600160a01b03848116600483015230602483015285919082169063e985e9c590604401602060405180830381865afa1580156100e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061010a9190610479565b61014a5760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd08185c1c1c9bdd995960a21b60448201526064015b60405180910390fd5b5f5b8281101561020b575f546001600160a01b03808416916342842e0e9188911687878681811061017d5761017d61049f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b039586166004820152949093166024850152506020909102013560448201526064015f604051808303815f87803b1580156101e9575f80fd5b505af11580156101fb573d5f803e3d5ffd5b50506001909201915061014c9050565b505050505050565b60405163e985e9c560e01b81526001600160a01b03868116600483015230602483015287919082169063e985e9c590604401602060405180830381865afa158015610260573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102849190610479565b6102bf5760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd08185c1c1c9bdd995960a21b6044820152606401610141565b5f54604051631759616b60e11b81526001600160a01b0380841692632eb2c2d6926102f8928b9216908a908a908a908a906004016104fc565b5f604051808303815f87803b15801561030f575f80fd5b505af1158015610321573d5f803e3d5ffd5b5050505050505050505050565b80356001600160a01b0381168114610344575f80fd5b919050565b5f8083601f840112610359575f80fd5b50813567ffffffffffffffff811115610370575f80fd5b6020830191508360208260051b850101111561038a575f80fd5b9250929050565b5f805f80606085870312156103a4575f80fd5b6103ad8561032e565b93506103bb6020860161032e565b9250604085013567ffffffffffffffff8111156103d6575f80fd5b6103e287828801610349565b95989497509550505050565b5f805f805f8060808789031215610403575f80fd5b61040c8761032e565b955061041a6020880161032e565b9450604087013567ffffffffffffffff80821115610436575f80fd5b6104428a838b01610349565b9096509450606089013591508082111561045a575f80fd5b5061046789828a01610349565b979a9699509497509295939492505050565b5f60208284031215610489575f80fd5b81518015158114610498575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156104e3575f80fd5b8260051b80836020870137939093016020019392505050565b5f6001600160a01b03808916835280881660208401525060a0604083015261052860a0830186886104b3565b828103606084015261053b8185876104b3565b83810360809094019390935250505f8152602001969550505050505056fea26469706673582212209641ca5fe2440c49227414f1f5cba98421f43a9e17309bda701084e7f9a060d264736f6c63430008180033000000000000000000000000ce53dd21732b73d72e546c184be0c0c10ab2fd8c

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063462c2d52146100435780634aef18ac146100585780637ea219a51461006b575b5f80fd5b610056610051366004610391565b610099565b005b6100566100663660046103ee565b610213565b5f5461007d906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b60405163e985e9c560e01b81526001600160a01b03848116600483015230602483015285919082169063e985e9c590604401602060405180830381865afa1580156100e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061010a9190610479565b61014a5760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd08185c1c1c9bdd995960a21b60448201526064015b60405180910390fd5b5f5b8281101561020b575f546001600160a01b03808416916342842e0e9188911687878681811061017d5761017d61049f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b039586166004820152949093166024850152506020909102013560448201526064015f604051808303815f87803b1580156101e9575f80fd5b505af11580156101fb573d5f803e3d5ffd5b50506001909201915061014c9050565b505050505050565b60405163e985e9c560e01b81526001600160a01b03868116600483015230602483015287919082169063e985e9c590604401602060405180830381865afa158015610260573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102849190610479565b6102bf5760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd08185c1c1c9bdd995960a21b6044820152606401610141565b5f54604051631759616b60e11b81526001600160a01b0380841692632eb2c2d6926102f8928b9216908a908a908a908a906004016104fc565b5f604051808303815f87803b15801561030f575f80fd5b505af1158015610321573d5f803e3d5ffd5b5050505050505050505050565b80356001600160a01b0381168114610344575f80fd5b919050565b5f8083601f840112610359575f80fd5b50813567ffffffffffffffff811115610370575f80fd5b6020830191508360208260051b850101111561038a575f80fd5b9250929050565b5f805f80606085870312156103a4575f80fd5b6103ad8561032e565b93506103bb6020860161032e565b9250604085013567ffffffffffffffff8111156103d6575f80fd5b6103e287828801610349565b95989497509550505050565b5f805f805f8060808789031215610403575f80fd5b61040c8761032e565b955061041a6020880161032e565b9450604087013567ffffffffffffffff80821115610436575f80fd5b6104428a838b01610349565b9096509450606089013591508082111561045a575f80fd5b5061046789828a01610349565b979a9699509497509295939492505050565b5f60208284031215610489575f80fd5b81518015158114610498575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156104e3575f80fd5b8260051b80836020870137939093016020019392505050565b5f6001600160a01b03808916835280881660208401525060a0604083015261052860a0830186886104b3565b828103606084015261053b8185876104b3565b83810360809094019390935250505f8152602001969550505050505056fea26469706673582212209641ca5fe2440c49227414f1f5cba98421f43a9e17309bda701084e7f9a060d264736f6c63430008180033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000ce53dd21732b73d72e546c184be0c0c10ab2fd8c

-----Decoded View---------------
Arg [0] : _to (address): 0xce53dd21732B73d72e546c184BE0C0C10Ab2fd8c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ce53dd21732b73d72e546c184be0c0c10ab2fd8c


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.