ETH Price: $3,005.36 (+4.32%)
Gas: 2 Gwei

Contract

0xcB9B2bc417016858Edd51C184297204Ddc301ca6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Batch Unlock181000962023-09-09 16:42:59300 days ago1694277779IN
0xcB9B2bc4...Ddc301ca6
0 ETH0.0003941911.14953114
Batch Unlock181000752023-09-09 16:38:47300 days ago1694277527IN
0xcB9B2bc4...Ddc301ca6
0 ETH0.0003967211.2212445
Batch Unlock181000502023-09-09 16:33:47300 days ago1694277227IN
0xcB9B2bc4...Ddc301ca6
0 ETH0.0004233211.97356151
0x60806040180940292023-09-08 20:18:35301 days ago1694204315IN
 Create: GoodblocksBatchUnlock
0 ETH0.0044289315.01841606

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GoodblocksBatchUnlock

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : batch-unlock.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

// multiple token unlocks
contract GoodblocksBatchUnlock
{
    IGoodblocks GBContract = IGoodblocks(0x29B4Ea6B1164C7cd8A3a0a1dc4ad88d1E0589124);

    function batchUnlock(uint256[] memory _tokenIds) public payable
    {
        for(uint256 i=0; i<_tokenIds.length; ++i)
        {
            GBContract.unlockNextGeneration(_tokenIds[i]);
        }
    }
}

// interface with the token contract
interface IGoodblocks
{
    function unlockNextGeneration(uint256 _tokenId) external payable;
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchUnlock","outputs":[],"stateMutability":"payable","type":"function"}]

60806040527329b4ea6b1164c7cd8a3a0a1dc4ad88d1e05891246000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006457600080fd5b506103f7806100746000396000f3fe60806040526004361061001e5760003560e01c80634a82942c14610023575b600080fd5b61003d600480360381019061003891906102a8565b61003f565b005b60005b81518110156101015760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636dcf09e283838151811061009a576100996102f1565b5b60200260200101516040518263ffffffff1660e01b81526004016100be919061032f565b600060405180830381600087803b1580156100d857600080fd5b505af11580156100ec573d6000803e3d6000fd5b50505050806100fa90610379565b9050610042565b5050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101678261011e565b810181811067ffffffffffffffff821117156101865761018561012f565b5b80604052505050565b6000610199610105565b90506101a5828261015e565b919050565b600067ffffffffffffffff8211156101c5576101c461012f565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6101ee816101db565b81146101f957600080fd5b50565b60008135905061020b816101e5565b92915050565b600061022461021f846101aa565b61018f565b90508083825260208201905060208402830185811115610247576102466101d6565b5b835b81811015610270578061025c88826101fc565b845260208401935050602081019050610249565b5050509392505050565b600082601f83011261028f5761028e610119565b5b813561029f848260208601610211565b91505092915050565b6000602082840312156102be576102bd61010f565b5b600082013567ffffffffffffffff8111156102dc576102db610114565b5b6102e88482850161027a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b610329816101db565b82525050565b60006020820190506103446000830184610320565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610384826101db565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036103b6576103b561034a565b5b60018201905091905056fea26469706673582212209f01fb1a6982675c8fe80328c83526104a84b04b401d53a7e476cc7612c79c4964736f6c63430008130033

Deployed Bytecode

0x60806040526004361061001e5760003560e01c80634a82942c14610023575b600080fd5b61003d600480360381019061003891906102a8565b61003f565b005b60005b81518110156101015760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636dcf09e283838151811061009a576100996102f1565b5b60200260200101516040518263ffffffff1660e01b81526004016100be919061032f565b600060405180830381600087803b1580156100d857600080fd5b505af11580156100ec573d6000803e3d6000fd5b50505050806100fa90610379565b9050610042565b5050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101678261011e565b810181811067ffffffffffffffff821117156101865761018561012f565b5b80604052505050565b6000610199610105565b90506101a5828261015e565b919050565b600067ffffffffffffffff8211156101c5576101c461012f565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6101ee816101db565b81146101f957600080fd5b50565b60008135905061020b816101e5565b92915050565b600061022461021f846101aa565b61018f565b90508083825260208201905060208402830185811115610247576102466101d6565b5b835b81811015610270578061025c88826101fc565b845260208401935050602081019050610249565b5050509392505050565b600082601f83011261028f5761028e610119565b5b813561029f848260208601610211565b91505092915050565b6000602082840312156102be576102bd61010f565b5b600082013567ffffffffffffffff8111156102dc576102db610114565b5b6102e88482850161027a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b610329816101db565b82525050565b60006020820190506103446000830184610320565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610384826101db565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036103b6576103b561034a565b5b60018201905091905056fea26469706673582212209f01fb1a6982675c8fe80328c83526104a84b04b401d53a7e476cc7612c79c4964736f6c63430008130033

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.