ETH Price: $2,205.97 (-5.80%)

Contract

0x1CF6Aba2b64907Dbb734Ea062f30dBB2b86ea0ef
 

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

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x3d602d80173839362023-06-01 5:38:231021 days ago1685597903  Contract Creation0 ETH
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

Minimal Proxy Contract for 0x36f9a614e85fef07de54e43ff5d9545cf1420d99

Contract Name:
Batch

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-06-01
*/

// SPDX-License-Identifier: MIT

// 微信 fooyao

pragma solidity ^0.8.19;

contract Batch {
    address private immutable owner;

	constructor() {
		owner = msg.sender;
	}

    function createProxies() internal returns (address proxy) {
		bytes memory miniProxy = bytes.concat(bytes20(0x3D602d80600A3D3981F3363d3d373d3D3D363d73), bytes20(address(this)), bytes15(0x5af43d82803e903d91602b57fd5bf3));
        bytes32 salt = keccak256(abi.encodePacked(msg.sender, block.number));
        assembly {
            proxy := create2(0, add(miniProxy, 32), mload(miniProxy), salt)
        }
	}

    function batch_mint_int(address contractAddress, uint batchCount, address _owner, address to) external {
        bool success;
        for (uint i = 0; i < batchCount; i++) {
            if (i>0 && i%20==0){
                (success, ) = contractAddress.call(abi.encodeWithSelector(0x6a627842, _owner));
            }else {
                (success, ) = contractAddress.call(abi.encodeWithSelector(0x6a627842, to));
            }
            require(success, "Batch transaction failed");
        }
        
    }


    function batch_mint(address contractAddress, uint batchCount) public {
        address proxyaddress = createProxies();
        Batch(proxyaddress).batch_mint_int(contractAddress, batchCount, owner, msg.sender);
    }
}

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"batchCount","type":"uint256"}],"name":"batch_mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"batchCount","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"batch_mint_int","outputs":[],"stateMutability":"nonpayable","type":"function"}]

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.