Source Code
Latest 5 from a total of 5 transactions
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 23983216 | 81 days ago | 0.00000315 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00000332 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00000641 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00003199 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.0001 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00012239 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00021042 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00021349 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.0003088 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00030924 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00030936 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031058 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031103 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031115 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031248 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031306 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031358 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00031465 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.0003188 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.0003208 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.0003208 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00032116 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00032231 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00032231 ETH | ||||
| Transfer | 23983216 | 81 days ago | 0.00032233 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BatchSend
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// @title Batch send Ether to multiple addresses.
/// @author jalil.eth & backseats.eth
contract BatchSend {
/// @dev Inform DAPPs of a failed transfer recipient.
event FailedTransfer(address indexed recipient, uint256 amount);
/// @dev Error for bad input.
error ArrayLengthMismatch();
/// @notice Send ether to many addresses.
/// @param recipients The addresses that should receive funds.
/// @param amounts How much wei to send to each address.
function send(
address[] calldata recipients,
uint256[] calldata amounts
) public payable {
uint256 count = recipients.length;
if (count != amounts.length) revert ArrayLengthMismatch();
uint256 failedAmount;
for (uint i; i < count;) {
(bool success,) = payable(recipients[i]).call{value: amounts[i]}("");
// Keep track of failed transfers
if (!success) {
failedAmount += amounts[i];
emit FailedTransfer(recipients[i], amounts[i]);
}
unchecked { ++i; }
}
// If anything failed to send, refund the msg.sender
if (failedAmount > 0) payable(msg.sender).transfer(failedAmount);
}
}
// LGTM
// <3 ty
// anytime man{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FailedTransfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b5061036e8061001d5f395ff3fe60806040526004361061001d575f3560e01c8063a645ff5f14610021575b5f80fd5b61003461002f36600461025e565b610036565b005b82818114610070576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f805b828110156101db575f87878381811061008e5761008e6102c5565b90506020020160208101906100a391906102d9565b73ffffffffffffffffffffffffffffffffffffffff168686848181106100cb576100cb6102c5565b905060200201356040515f6040518083038185875af1925050503d805f811461010f576040519150601f19603f3d011682016040523d82523d5f602084013e610114565b606091505b50509050806101d25785858381811061012f5761012f6102c5565b90506020020135836101419190610313565b9250878783818110610155576101556102c5565b905060200201602081019061016a91906102d9565b73ffffffffffffffffffffffffffffffffffffffff167f3506b32cea6b36a739c1c2a71a9e1b3d6222104389c07219059fa6eb6d2e05638787858181106101b3576101b36102c5565b905060200201356040516101c991815260200190565b60405180910390a25b50600101610073565b50801561020e57604051339082156108fc029083905f818181858888f1935050505015801561020c573d5f803e3d5ffd5b505b505050505050565b5f8083601f840112610226575f80fd5b50813567ffffffffffffffff81111561023d575f80fd5b6020830191508360208260051b8501011115610257575f80fd5b9250929050565b5f805f8060408587031215610271575f80fd5b843567ffffffffffffffff80821115610288575f80fd5b61029488838901610216565b909650945060208701359150808211156102ac575f80fd5b506102b987828801610216565b95989497509550505050565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156102e9575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461030c575f80fd5b9392505050565b8082018082111561033257634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220c3a34d4c77d4b39b5b465c836325e24b8279978f3d75b11cdc7a9372bbae4d8d64736f6c63430008140033
Deployed Bytecode
0x60806040526004361061001d575f3560e01c8063a645ff5f14610021575b5f80fd5b61003461002f36600461025e565b610036565b005b82818114610070576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f805b828110156101db575f87878381811061008e5761008e6102c5565b90506020020160208101906100a391906102d9565b73ffffffffffffffffffffffffffffffffffffffff168686848181106100cb576100cb6102c5565b905060200201356040515f6040518083038185875af1925050503d805f811461010f576040519150601f19603f3d011682016040523d82523d5f602084013e610114565b606091505b50509050806101d25785858381811061012f5761012f6102c5565b90506020020135836101419190610313565b9250878783818110610155576101556102c5565b905060200201602081019061016a91906102d9565b73ffffffffffffffffffffffffffffffffffffffff167f3506b32cea6b36a739c1c2a71a9e1b3d6222104389c07219059fa6eb6d2e05638787858181106101b3576101b36102c5565b905060200201356040516101c991815260200190565b60405180910390a25b50600101610073565b50801561020e57604051339082156108fc029083905f818181858888f1935050505015801561020c573d5f803e3d5ffd5b505b505050505050565b5f8083601f840112610226575f80fd5b50813567ffffffffffffffff81111561023d575f80fd5b6020830191508360208260051b8501011115610257575f80fd5b9250929050565b5f805f8060408587031215610271575f80fd5b843567ffffffffffffffff80821115610288575f80fd5b61029488838901610216565b909650945060208701359150808211156102ac575f80fd5b506102b987828801610216565b95989497509550505050565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156102e9575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461030c575f80fd5b9392505050565b8082018082111561033257634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220c3a34d4c77d4b39b5b465c836325e24b8279978f3d75b11cdc7a9372bbae4d8d64736f6c63430008140033
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 ]
[ 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.