ETH Price: $3,247.66 (-0.38%)
Gas: 2 Gwei

Contract

0x665891Ef34DdEFD5f7fB909029DC3f06444be564
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040154297432022-08-28 19:49:34698 days ago1661716174IN
 Create: ownerOfSnapshot
0 ETH0.0049840521.93298359

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

Contract Source Code Verified (Exact Match)

Contract Name:
ownerOfSnapshot

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-08-28
*/

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

// Easy Snapshotting of ERC721 Owners 

// Note: Make sure that if you are querying an ERC721 which
// reverts on ownerOf address(0) to omit those tokenIds in the
// passed array argument.

// Author: 0xInuarashi
// https://twitter.com/0xinuarashi || 0xInuarashi#1234

interface iERC721 {
    function ownerOf(uint256 tokenId_) external view returns (address);
}

contract ownerOfSnapshot {
    function snapshotOwnerOf(address contract_, uint256[] calldata tokenIds_) 
    external view returns (address[] memory) {
        uint256 l = tokenIds_.length;
        address[] memory _addresses = new address[](l);
        for (uint256 i = 0; i < l; i++) {
            _addresses[i] = iERC721(contract_).ownerOf(tokenIds_[i]);
        }
        return _addresses;
    }    
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"snapshotOwnerOf","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610326806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806324d3b07a14610030575b600080fd5b61004361003e3660046101ae565b610059565b6040516100509190610236565b60405180910390f35b60608160008167ffffffffffffffff811115610077576100776102c2565b6040519080825280602002602001820160405280156100a0578160200160208202803683370190505b50905060005b8281101561018057866001600160a01b0316636352211e8787848181106100cf576100cf6102ac565b905060200201356040518263ffffffff1660e01b81526004016100f491815260200190565b60206040518083038186803b15801561010c57600080fd5b505afa158015610120573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610144919061018a565b828281518110610156576101566102ac565b6001600160a01b03909216602092830291909101909101528061017881610283565b9150506100a6565b5095945050505050565b60006020828403121561019c57600080fd5b81516101a7816102d8565b9392505050565b6000806000604084860312156101c357600080fd5b83356101ce816102d8565b9250602084013567ffffffffffffffff808211156101eb57600080fd5b818601915086601f8301126101ff57600080fd5b81358181111561020e57600080fd5b8760208260051b850101111561022357600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b818110156102775783516001600160a01b031683529284019291840191600101610252565b50909695505050505050565b60006000198214156102a557634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146102ed57600080fd5b5056fea2646970667358221220506845f57e5b405632bffa8254011211b238a5b2e16a7a8150246d7bfb9a54b464736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806324d3b07a14610030575b600080fd5b61004361003e3660046101ae565b610059565b6040516100509190610236565b60405180910390f35b60608160008167ffffffffffffffff811115610077576100776102c2565b6040519080825280602002602001820160405280156100a0578160200160208202803683370190505b50905060005b8281101561018057866001600160a01b0316636352211e8787848181106100cf576100cf6102ac565b905060200201356040518263ffffffff1660e01b81526004016100f491815260200190565b60206040518083038186803b15801561010c57600080fd5b505afa158015610120573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610144919061018a565b828281518110610156576101566102ac565b6001600160a01b03909216602092830291909101909101528061017881610283565b9150506100a6565b5095945050505050565b60006020828403121561019c57600080fd5b81516101a7816102d8565b9392505050565b6000806000604084860312156101c357600080fd5b83356101ce816102d8565b9250602084013567ffffffffffffffff808211156101eb57600080fd5b818601915086601f8301126101ff57600080fd5b81358181111561020e57600080fd5b8760208260051b850101111561022357600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b818110156102775783516001600160a01b031683529284019291840191600101610252565b50909695505050505050565b60006000198214156102a557634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146102ed57600080fd5b5056fea2646970667358221220506845f57e5b405632bffa8254011211b238a5b2e16a7a8150246d7bfb9a54b464736f6c63430008070033

Deployed Bytecode Sourcemap

437:417:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;469:378;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;572:16;613:9;601;613;670:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;670:16:0;;640:46;;702:9;697:115;721:1;717;:5;697:115;;;768:9;-1:-1:-1;;;;;760:26:0;;787:9;;797:1;787:12;;;;;;;:::i;:::-;;;;;;;760:40;;;;;;;;;;;;;1834:25:1;;1822:2;1807:18;;1688:177;760:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;744:10;755:1;744:13;;;;;;;;:::i;:::-;-1:-1:-1;;;;;744:56:0;;;:13;;;;;;;;;;;:56;724:3;;;;:::i;:::-;;;;697:115;;;-1:-1:-1;829:10:0;469:378;-1:-1:-1;;;;;469:378:0:o;14:251:1:-;84:6;137:2;125:9;116:7;112:23;108:32;105:52;;;153:1;150;143:12;105:52;185:9;179:16;204:31;229:5;204:31;:::i;:::-;254:5;14:251;-1:-1:-1;;;14:251:1:o;270:750::-;365:6;373;381;434:2;422:9;413:7;409:23;405:32;402:52;;;450:1;447;440:12;402:52;489:9;476:23;508:31;533:5;508:31;:::i;:::-;558:5;-1:-1:-1;614:2:1;599:18;;586:32;637:18;667:14;;;664:34;;;694:1;691;684:12;664:34;732:6;721:9;717:22;707:32;;777:7;770:4;766:2;762:13;758:27;748:55;;799:1;796;789:12;748:55;839:2;826:16;865:2;857:6;854:14;851:34;;;881:1;878;871:12;851:34;934:7;929:2;919:6;916:1;912:14;908:2;904:23;900:32;897:45;894:65;;;955:1;952;945:12;894:65;986:2;982;978:11;968:21;;1008:6;998:16;;;;;270:750;;;;;:::o;1025:658::-;1196:2;1248:21;;;1318:13;;1221:18;;;1340:22;;;1167:4;;1196:2;1419:15;;;;1393:2;1378:18;;;1167:4;1462:195;1476:6;1473:1;1470:13;1462:195;;;1541:13;;-1:-1:-1;;;;;1537:39:1;1525:52;;1632:15;;;;1597:12;;;;1573:1;1491:9;1462:195;;;-1:-1:-1;1674:3:1;;1025:658;-1:-1:-1;;;;;;1025:658:1:o;1870:232::-;1909:3;-1:-1:-1;;1930:17:1;;1927:140;;;1989:10;1984:3;1980:20;1977:1;1970:31;2024:4;2021:1;2014:15;2052:4;2049:1;2042:15;1927:140;-1:-1:-1;2094:1:1;2083:13;;1870:232::o;2107:127::-;2168:10;2163:3;2159:20;2156:1;2149:31;2199:4;2196:1;2189:15;2223:4;2220:1;2213:15;2239:127;2300:10;2295:3;2291:20;2288:1;2281:31;2331:4;2328:1;2321:15;2355:4;2352:1;2345:15;2371:131;-1:-1:-1;;;;;2446:31:1;;2436:42;;2426:70;;2492:1;2489;2482:12;2426:70;2371:131;:::o

Swarm Source

ipfs://506845f57e5b405632bffa8254011211b238a5b2e16a7a8150246d7bfb9a54b4

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
[ 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.