Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60c06040 | 14435891 | 974 days ago | IN | 0 ETH | 0.00487967 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MetroLookup
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "./interfaces/IMetroNFTLookup.sol"; contract MetroLookup is IMetroNFTLookup { address immutable genesisAddress; address immutable blackoutAddress; constructor( address _genesisAddress, address _blackoutAddress ) { genesisAddress = _genesisAddress; blackoutAddress = _blackoutAddress; } function getNFTContractAddress(uint256 tokenId) external view returns (address) { require(tokenId > 0 && tokenId <= 20000, "Invalid token id"); return tokenId <= 10_000 ? genesisAddress : blackoutAddress; } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity 0.8.12; interface IMetroNFTLookup { function getNFTContractAddress(uint256 tokenId) external view returns (address); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_genesisAddress","type":"address"},{"internalType":"address","name":"_blackoutAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNFTContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b5060405161024938038061024983398101604081905261002f91610062565b6001600160a01b039182166080521660a052610095565b80516001600160a01b038116811461005d57600080fd5b919050565b6000806040838503121561007557600080fd5b61007e83610046565b915061008c60208401610046565b90509250929050565b60805160a0516101906100b9600039600060f50152600061011b01526101906000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ead9189e14610030575b600080fd5b61004361003e366004610141565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000808211801561007f5750614e208211155b6100e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420746f6b656e20696400000000000000000000000000000000604482015260640160405180910390fd5b612710821115610119577f000000000000000000000000000000000000000000000000000000000000000061013b565b7f00000000000000000000000000000000000000000000000000000000000000005b92915050565b60006020828403121561015357600080fd5b503591905056fea26469706673582212200efb8f3fc48ea031d86cb81687919d887083f3895caae13139fa1532a07841aa64736f6c634300080c00330000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ead9189e14610030575b600080fd5b61004361003e366004610141565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000808211801561007f5750614e208211155b6100e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420746f6b656e20696400000000000000000000000000000000604482015260640160405180910390fd5b612710821115610119577f00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b61013b565b7f0000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f5b92915050565b60006020828403121561015357600080fd5b503591905056fea26469706673582212200efb8f3fc48ea031d86cb81687919d887083f3895caae13139fa1532a07841aa64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b
-----Decoded View---------------
Arg [0] : _genesisAddress (address): 0x0e9d6552b85BE180d941f1cA73Ae3E318D2D4F1F
Arg [1] : _blackoutAddress (address): 0x25cD67e2DFec471aCd3cdd3B22cCf7147596DD8B
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f
Arg [1] : 00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.