Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 219 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Multisend ERC20 | 6934968 | 225 days ago | IN | 0 ETH | 0.0007191 | ||||
Multisend | 6896388 | 231 days ago | IN | 0.0003 ETH | 0.00058965 | ||||
Multisend | 6890439 | 232 days ago | IN | 1.01 ETH | 0.00029613 | ||||
Multisend | 6890207 | 232 days ago | IN | 2.112 ETH | 0.000966 | ||||
Multisend | 6890200 | 232 days ago | IN | 1.012 ETH | 0.00064813 | ||||
Multisend | 6890194 | 232 days ago | IN | 0.001 ETH | 0.00035334 | ||||
Multisend | 6889307 | 232 days ago | IN | 0.001 ETH | 0.00015026 | ||||
Multisend | 6884096 | 233 days ago | IN | 0.01 ETH | 0.00036963 | ||||
Multisend ERC20 | 6883560 | 233 days ago | IN | 0 ETH | 0.00022392 | ||||
Multisend ERC20 | 6880137 | 234 days ago | IN | 0 ETH | 0.00523472 | ||||
Multisend | 5181301 | 493 days ago | IN | 0.001 ETH | 0.00009667 | ||||
Multisend ERC721 | 5106767 | 505 days ago | IN | 0 ETH | 0.02223625 | ||||
Multisend ERC20 | 5095387 | 507 days ago | IN | 0 ETH | 0.0046269 | ||||
Multisend ERC20 | 5012463 | 520 days ago | IN | 0 ETH | 0.00414058 | ||||
Multisend ERC721 | 4922100 | 534 days ago | IN | 0 ETH | 0.00045854 | ||||
Multisend ERC721 | 4921884 | 534 days ago | IN | 0 ETH | 0.00043386 | ||||
Multisend ERC721 | 4916571 | 535 days ago | IN | 0 ETH | 0.06249792 | ||||
Multisend ERC20 | 4909569 | 536 days ago | IN | 0 ETH | 0.0118851 | ||||
Multisend ERC20 | 4909559 | 536 days ago | IN | 0 ETH | 0.01425761 | ||||
Multisend ERC20 | 4909359 | 536 days ago | IN | 0 ETH | 0.00558529 | ||||
Multisend ERC20 | 4909340 | 536 days ago | IN | 0 ETH | 0.00749807 | ||||
Multisend | 4909332 | 536 days ago | IN | 0 ETH | 0.00460412 | ||||
Multisend ERC721 | 4909322 | 536 days ago | IN | 0 ETH | 0.00316402 | ||||
Multisend ERC20 | 4909261 | 536 days ago | IN | 0 ETH | 0.01219285 | ||||
Multisend | 4908607 | 536 days ago | IN | 0.00079996 ETH | 0.00093008 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|---|
Transfer* | 6934968 | 225 days ago | 0 ETH | |||||
Transfer* | 6934968 | 225 days ago | 0 ETH | |||||
Transfer* | 6934968 | 225 days ago | 0 ETH | |||||
Transfer* | 6934968 | 225 days ago | 0 ETH | |||||
Transfer* | 6934968 | 225 days ago | 0 ETH | |||||
Transfer* | 6934968 | 225 days ago | 0 ETH | |||||
Transfer | 6896388 | 231 days ago | 0.0001 ETH | |||||
Transfer | 6896388 | 231 days ago | 0.0001 ETH | |||||
Transfer | 6896388 | 231 days ago | 0.0001 ETH | |||||
Transfer | 6890439 | 232 days ago | 0.01 ETH | |||||
Transfer | 6890439 | 232 days ago | 1 ETH | |||||
Transfer | 6890207 | 232 days ago | 1.1 ETH | |||||
Transfer | 6890207 | 232 days ago | 1 ETH | |||||
Transfer | 6890207 | 232 days ago | 0.002 ETH | |||||
Transfer | 6890207 | 232 days ago | 0.01 ETH | |||||
Transfer | 6890200 | 232 days ago | 1 ETH | |||||
Transfer | 6890200 | 232 days ago | 0.002 ETH | |||||
Transfer | 6890200 | 232 days ago | 0.01 ETH | |||||
Transfer | 6890194 | 232 days ago | 0.001 ETH | |||||
Transfer | 6889307 | 232 days ago | 0.001 ETH | |||||
Transfer | 6884096 | 233 days ago | 0.01 ETH | |||||
Transfer* | 6883560 | 233 days ago | 0 ETH | |||||
Transfer* | 6880137 | 234 days ago | 0 ETH | |||||
Transfer* | 6880137 | 234 days ago | 0 ETH | |||||
Transfer | 5181301 | 493 days ago | 0.001 ETH |
Loading...
Loading
Contract Name:
Multisender
Compiler Version
v0.8.19+commit.7dd6d404
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.0; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; /** * @dev Send ERC20/ERC721 to multiple account at once * * Features: * - No transaction fees * - Protection against gas griefing * - User-friendly error messages: Lists each address if transfer fails * - Audited using the reputable tool(=`slither`) * */ contract Multisender { using Strings for uint256; using Strings for address; // Fixed gas consumption when `transfer` is called uint256 public constant TRANSFER_GAS = 2300; // Default gas consumption when utilizing Openzeppelin mesured by `GasMeter.sol` uint256 public constant BASE_ERC20_TRANSFER_GAS = 28384; uint256 public constant BASE_ERC721_TRANSFER_GAS = 37573; // The multiplier to calculate max consumable gas uint256 public constant MAX_GAS_MULTIPLIER = 3; /** * @dev Transfer native token to multiple receipients * Revert if the transferring operation consume larger gas then standard * The native opcode `transfer` consume 2300 gas, but the actual gas consumption * become larger than it when the receipient is a contract. * Ref: https://consensys.io/diligence/blog/2019/09/stop-using-soliditys-transfer-now/ * * @param tos list of receipient addresses * @param amounts list of amounts * @param baseGas_ the basic gas consumption of transferring operation */ function multisend( address[] calldata tos, uint256[] calldata amounts, uint256 baseGas_ ) public payable { require(tos.length == amounts.length, "tos and amounts must have the same length"); uint256 baseGas = baseGas_ != 0 ? baseGas_ : TRANSFER_GAS; string memory failedList = ""; uint256 sum = 0; for (uint256 i = 0; i < tos.length; i++) { sum += amounts[i]; if (!_transfer(tos[i], amounts[i], baseGas)) { failedList = string.concat(failedList, tos[i].toHexString(), ","); } } require(sum == msg.value, "sum of amounts must be equal to msg.value"); _assertFailedList(failedList); } /** * @dev Transfer erc20 to multiple receipients * Revert if the transferring operation consume `MAX_GAS_MULTIPLIER` times larger gas then standard * * @param token address of token * @param tos list of receipient addresses * @param amounts list of amounts * @param baseGas_ the basic gas consumption of transferring operation */ function multisendERC20( address token, address[] calldata tos, uint256[] calldata amounts, uint256 baseGas_ ) public { require(token != address(0), "token address cannot be 0"); require(tos.length == amounts.length, "tos and amounts must have the same length"); uint256 baseGas = baseGas_ != 0 ? baseGas_ : BASE_ERC20_TRANSFER_GAS; string memory failedList = ""; for (uint256 i = 0; i < tos.length; i++) { if ( !_transferGeneric( token, baseGas, "transferFrom(address,address,uint256)", abi.encode(msg.sender, tos[i], amounts[i]) ) ) { // if (!_transferERC20(token, tos[i], amounts[i], baseGas)) { failedList = string.concat(failedList, tos[i].toHexString(), ","); } } _assertFailedList(failedList); } /** * @dev Transfer erc721 to multiple receipients * Revert if the transferring operation consume `MAX_GAS_MULTIPLIER` times larger gas then standard * * @param token address of token * @param tos list of receipient addresses * @param tokenIds list of tokenIds * @param data list of data * @param baseGas_ the basic gas consumption of transferring operation */ function multisendERC721( address token, address[] calldata tos, uint256[] calldata tokenIds, bytes[] calldata data, uint256 baseGas_ ) public { require(token != address(0), "token address cannot be 0"); require(tos.length == tokenIds.length, "tos and tokenIds must have the same length"); require(tos.length == data.length, "tos and data must have the same length"); uint256 baseGas = baseGas_ != 0 ? baseGas_ : BASE_ERC721_TRANSFER_GAS; string memory failedList = ""; for (uint256 i = 0; i < tos.length; i++) { if ( !_transferGeneric( token, baseGas, "safeTransferFrom(address,address,uint256,bytes)", abi.encode(msg.sender, tos[i], tokenIds[i], data[i]) ) ) { failedList = string.concat(failedList, tos[i].toHexString(), ","); } } _assertFailedList(failedList); } // function _validateLeftgas(uint256 i, uint256 total, uint256 requiredGas) internal view { // if (gasleft() < requiredGas) { // revert( // string.concat( // "will run out of gas at index ", // (i + 1).toString(), // " in ", // total.toString(), // ", left: ", // gasleft().toString(), // " required: ", // requiredGas.toString() // ) // ); // } // } function _assertFailedList(string memory failedList) internal pure { uint256 length = bytes(failedList).length; if (length > 0) { revert( string.concat( "failed to transfer to ", // NOTE: 43 length = address + "," (length / 43).toString(), " addresses: ", failedList ) ); } } function _transfer(address to, uint256 amount, uint256 baseGas) internal returns (bool) { // NOTE: call transferFrom with gas limit to avoid gas greefing // slither-disable-next-line arbitrary-send-eth (bool success, ) = to.call{gas: baseGas, value: amount}(""); return success; } function _transferGeneric( address target, uint256 baseGas, string memory functionSignature, bytes memory args ) internal returns (bool) { // NOTE: call with gas limit to avoid gas greefing // slither-disable-next-line low-level-calls (bool success, bytes memory data) = target.call{gas: baseGas * MAX_GAS_MULTIPLIER}( abi.encodePacked(bytes4(keccak256(bytes(functionSignature))), args) ); // If the function returns a boolean, decode it. Otherwise, just return the success flag. if (data.length == 32) { return success && abi.decode(data, (bool)); } return success; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract ABI
API[{"inputs":[],"name":"BASE_ERC20_TRANSFER_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASE_ERC721_TRANSFER_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GAS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"baseGas_","type":"uint256"}],"name":"multisend","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"baseGas_","type":"uint256"}],"name":"multisendERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"},{"internalType":"uint256","name":"baseGas_","type":"uint256"}],"name":"multisendERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611255806100206000396000f3fe6080604052600436106100705760003560e01c8063cc75ee351161004e578063cc75ee35146100d2578063ce82a930146100e7578063d9bd4c68146100fd578063f68634c21461011d57600080fd5b80636b4e5dbf146100755780639c0899eb1461008a578063b1e242e8146100b2575b600080fd5b610088610083366004610cd7565b610133565b005b34801561009657600080fd5b506100a0616ee081565b60405190815260200160405180910390f35b3480156100be57600080fd5b506100886100cd366004610d67565b610335565b3480156100de57600080fd5b506100a0600381565b3480156100f357600080fd5b506100a06108fc81565b34801561010957600080fd5b50610088610118366004610df0565b610511565b34801561012957600080fd5b506100a06192c581565b8382146101995760405162461bcd60e51b815260206004820152602960248201527f746f7320616e6420616d6f756e7473206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b60648201526084015b60405180910390fd5b6000816000036101ab576108fc6101ad565b815b6040805160208101909152600080825291925090805b878110156102ac578686828181106101dd576101dd610ea2565b90506020020135826101ef9190610ece565b915061023a89898381811061020657610206610ea2565b905060200201602081019061021b9190610ee1565b88888481811061022d5761022d610ea2565b905060200201358661077e565b61029a57826102778a8a8481811061025457610254610ea2565b90506020020160208101906102699190610ee1565b6001600160a01b03166107df565b604051602001610288929190610f20565b60405160208183030381529060405292505b806102a481610f77565b9150506101c3565b503481146103225760405162461bcd60e51b815260206004820152602960248201527f73756d206f6620616d6f756e7473206d75737420626520657175616c20746f2060448201527f6d73672e76616c756500000000000000000000000000000000000000000000006064820152608401610190565b61032b826107fb565b5050505050505050565b6001600160a01b03861661038b5760405162461bcd60e51b815260206004820152601960248201527f746f6b656e20616464726573732063616e6e6f742062652030000000000000006044820152606401610190565b8382146103ec5760405162461bcd60e51b815260206004820152602960248201527f746f7320616e6420616d6f756e7473206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b6064820152608401610190565b6000816000036103fe57616ee0610400565b815b60408051602081019091526000808252919250905b86811015610507576104b889846040518060600160405280602581526020016111cc60259139338c8c8781811061044e5761044e610ea2565b90506020020160208101906104639190610ee1565b8b8b8881811061047557610475610ea2565b604080516001600160a01b03968716602080830191909152959096169086015290920201356060830152506080015b604051602081830303815290604052610852565b6104f557816104d289898481811061025457610254610ea2565b6040516020016104e3929190610f20565b60405160208183030381529060405291505b806104ff81610f77565b915050610415565b5061032b816107fb565b6001600160a01b0388166105675760405162461bcd60e51b815260206004820152601960248201527f746f6b656e20616464726573732063616e6e6f742062652030000000000000006044820152606401610190565b8584146105dc5760405162461bcd60e51b815260206004820152602a60248201527f746f7320616e6420746f6b656e496473206d757374206861766520746865207360448201527f616d65206c656e677468000000000000000000000000000000000000000000006064820152608401610190565b8582146106515760405162461bcd60e51b815260206004820152602660248201527f746f7320616e642064617461206d7573742068617665207468652073616d652060448201527f6c656e67746800000000000000000000000000000000000000000000000000006064820152608401610190565b600081600003610663576192c5610665565b815b60408051602081019091526000808252919250905b88811015610768576107198b846040518060600160405280602f81526020016111f1602f9139338e8e878181106106b3576106b3610ea2565b90506020020160208101906106c89190610ee1565b8d8d888181106106da576106da610ea2565b905060200201358c8c898181106106f3576106f3610ea2565b90506020028101906107059190610f90565b6040516020016104a4959493929190610fd7565b61075657816107338b8b8481811061025457610254610ea2565b604051602001610744929190610f20565b60405160208183030381529060405291505b8061076081610f77565b91505061067a565b50610772816107fb565b50505050505050505050565b600080846001600160a01b03168385604051600060405180830381858888f193505050503d80600081146107ce576040519150601f19603f3d011682016040523d82523d6000602084013e6107d3565b606091505b50909695505050505050565b60606107f56001600160a01b0383166014610921565b92915050565b8051801561084e57610816610811602b8361102b565b610b09565b8260405160200161082892919061104d565b60408051601f198184030181529082905262461bcd60e51b8252610190916004016110ce565b5050565b600080806001600160a01b03871661086b600388611101565b868051906020012086604051602001610885929190611118565b60408051601f198184030181529082905261089f91611160565b60006040518083038160008787f1925050503d80600081146108dd576040519150601f19603f3d011682016040523d82523d6000602084013e6108e2565b606091505b509150915080516020036109155781801561090c57508080602001905181019061090c919061117c565b92505050610919565b5090505b949350505050565b60606000610930836002611101565b61093b906002610ece565b67ffffffffffffffff8111156109535761095361119e565b6040519080825280601f01601f19166020018201604052801561097d576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106109b4576109b4610ea2565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106109ff576109ff610ea2565b60200101906001600160f81b031916908160001a9053506000610a23846002611101565b610a2e906001610ece565b90505b6001811115610ab3577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610a6f57610a6f610ea2565b1a60f81b828281518110610a8557610a85610ea2565b60200101906001600160f81b031916908160001a90535060049490941c93610aac816111b4565b9050610a31565b508315610b025760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610190565b9392505050565b60606000610b1683610ba9565b600101905060008167ffffffffffffffff811115610b3657610b3661119e565b6040519080825280601f01601f191660200182016040528015610b60576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084610b6a57509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610bf2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610c1e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610c3c57662386f26fc10000830492506010015b6305f5e1008310610c54576305f5e100830492506008015b6127108310610c6857612710830492506004015b60648310610c7a576064830492506002015b600a83106107f55760010192915050565b60008083601f840112610c9d57600080fd5b50813567ffffffffffffffff811115610cb557600080fd5b6020830191508360208260051b8501011115610cd057600080fd5b9250929050565b600080600080600060608688031215610cef57600080fd5b853567ffffffffffffffff80821115610d0757600080fd5b610d1389838a01610c8b565b90975095506020880135915080821115610d2c57600080fd5b50610d3988828901610c8b565b96999598509660400135949350505050565b80356001600160a01b0381168114610d6257600080fd5b919050565b60008060008060008060808789031215610d8057600080fd5b610d8987610d4b565b9550602087013567ffffffffffffffff80821115610da657600080fd5b610db28a838b01610c8b565b90975095506040890135915080821115610dcb57600080fd5b50610dd889828a01610c8b565b979a9699509497949695606090950135949350505050565b60008060008060008060008060a0898b031215610e0c57600080fd5b610e1589610d4b565b9750602089013567ffffffffffffffff80821115610e3257600080fd5b610e3e8c838d01610c8b565b909950975060408b0135915080821115610e5757600080fd5b610e638c838d01610c8b565b909750955060608b0135915080821115610e7c57600080fd5b50610e898b828c01610c8b565b999c989b50969995989497949560800135949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156107f5576107f5610eb8565b600060208284031215610ef357600080fd5b610b0282610d4b565b60005b83811015610f17578181015183820152602001610eff565b50506000910152565b60008351610f32818460208801610efc565b835190830190610f46818360208801610efc565b7f2c000000000000000000000000000000000000000000000000000000000000009101908152600101949350505050565b600060018201610f8957610f89610eb8565b5060010190565b6000808335601e19843603018112610fa757600080fd5b83018035915067ffffffffffffffff821115610fc257600080fd5b602001915036819003821315610cd057600080fd5b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008261104857634e487b7160e01b600052601260045260246000fd5b500490565b7f6661696c656420746f207472616e7366657220746f2000000000000000000000815260008351611085816016850160208801610efc565b7f206164647265737365733a20000000000000000000000000000000000000000060169184019182015283516110c2816022840160208801610efc565b01602201949350505050565b60208152600082518060208401526110ed816040850160208701610efc565b601f01601f19169190910160400192915050565b80820281158282048414176107f5576107f5610eb8565b7fffffffff000000000000000000000000000000000000000000000000000000008316815260008251611152816004850160208701610efc565b919091016004019392505050565b60008251611172818460208701610efc565b9190910192915050565b60006020828403121561118e57600080fd5b81518015158114610b0257600080fd5b634e487b7160e01b600052604160045260246000fd5b6000816111c3576111c3610eb8565b50600019019056fe7472616e7366657246726f6d28616464726573732c616464726573732c75696e7432353629736166655472616e7366657246726f6d28616464726573732c616464726573732c75696e743235362c627974657329a2646970667358221220a1603cc47b78d9e21bea8b6a1151c48c6ee94c5905a9759bff5312df8afcd98364736f6c63430008130033
Deployed Bytecode
0x6080604052600436106100705760003560e01c8063cc75ee351161004e578063cc75ee35146100d2578063ce82a930146100e7578063d9bd4c68146100fd578063f68634c21461011d57600080fd5b80636b4e5dbf146100755780639c0899eb1461008a578063b1e242e8146100b2575b600080fd5b610088610083366004610cd7565b610133565b005b34801561009657600080fd5b506100a0616ee081565b60405190815260200160405180910390f35b3480156100be57600080fd5b506100886100cd366004610d67565b610335565b3480156100de57600080fd5b506100a0600381565b3480156100f357600080fd5b506100a06108fc81565b34801561010957600080fd5b50610088610118366004610df0565b610511565b34801561012957600080fd5b506100a06192c581565b8382146101995760405162461bcd60e51b815260206004820152602960248201527f746f7320616e6420616d6f756e7473206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b60648201526084015b60405180910390fd5b6000816000036101ab576108fc6101ad565b815b6040805160208101909152600080825291925090805b878110156102ac578686828181106101dd576101dd610ea2565b90506020020135826101ef9190610ece565b915061023a89898381811061020657610206610ea2565b905060200201602081019061021b9190610ee1565b88888481811061022d5761022d610ea2565b905060200201358661077e565b61029a57826102778a8a8481811061025457610254610ea2565b90506020020160208101906102699190610ee1565b6001600160a01b03166107df565b604051602001610288929190610f20565b60405160208183030381529060405292505b806102a481610f77565b9150506101c3565b503481146103225760405162461bcd60e51b815260206004820152602960248201527f73756d206f6620616d6f756e7473206d75737420626520657175616c20746f2060448201527f6d73672e76616c756500000000000000000000000000000000000000000000006064820152608401610190565b61032b826107fb565b5050505050505050565b6001600160a01b03861661038b5760405162461bcd60e51b815260206004820152601960248201527f746f6b656e20616464726573732063616e6e6f742062652030000000000000006044820152606401610190565b8382146103ec5760405162461bcd60e51b815260206004820152602960248201527f746f7320616e6420616d6f756e7473206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b6064820152608401610190565b6000816000036103fe57616ee0610400565b815b60408051602081019091526000808252919250905b86811015610507576104b889846040518060600160405280602581526020016111cc60259139338c8c8781811061044e5761044e610ea2565b90506020020160208101906104639190610ee1565b8b8b8881811061047557610475610ea2565b604080516001600160a01b03968716602080830191909152959096169086015290920201356060830152506080015b604051602081830303815290604052610852565b6104f557816104d289898481811061025457610254610ea2565b6040516020016104e3929190610f20565b60405160208183030381529060405291505b806104ff81610f77565b915050610415565b5061032b816107fb565b6001600160a01b0388166105675760405162461bcd60e51b815260206004820152601960248201527f746f6b656e20616464726573732063616e6e6f742062652030000000000000006044820152606401610190565b8584146105dc5760405162461bcd60e51b815260206004820152602a60248201527f746f7320616e6420746f6b656e496473206d757374206861766520746865207360448201527f616d65206c656e677468000000000000000000000000000000000000000000006064820152608401610190565b8582146106515760405162461bcd60e51b815260206004820152602660248201527f746f7320616e642064617461206d7573742068617665207468652073616d652060448201527f6c656e67746800000000000000000000000000000000000000000000000000006064820152608401610190565b600081600003610663576192c5610665565b815b60408051602081019091526000808252919250905b88811015610768576107198b846040518060600160405280602f81526020016111f1602f9139338e8e878181106106b3576106b3610ea2565b90506020020160208101906106c89190610ee1565b8d8d888181106106da576106da610ea2565b905060200201358c8c898181106106f3576106f3610ea2565b90506020028101906107059190610f90565b6040516020016104a4959493929190610fd7565b61075657816107338b8b8481811061025457610254610ea2565b604051602001610744929190610f20565b60405160208183030381529060405291505b8061076081610f77565b91505061067a565b50610772816107fb565b50505050505050505050565b600080846001600160a01b03168385604051600060405180830381858888f193505050503d80600081146107ce576040519150601f19603f3d011682016040523d82523d6000602084013e6107d3565b606091505b50909695505050505050565b60606107f56001600160a01b0383166014610921565b92915050565b8051801561084e57610816610811602b8361102b565b610b09565b8260405160200161082892919061104d565b60408051601f198184030181529082905262461bcd60e51b8252610190916004016110ce565b5050565b600080806001600160a01b03871661086b600388611101565b868051906020012086604051602001610885929190611118565b60408051601f198184030181529082905261089f91611160565b60006040518083038160008787f1925050503d80600081146108dd576040519150601f19603f3d011682016040523d82523d6000602084013e6108e2565b606091505b509150915080516020036109155781801561090c57508080602001905181019061090c919061117c565b92505050610919565b5090505b949350505050565b60606000610930836002611101565b61093b906002610ece565b67ffffffffffffffff8111156109535761095361119e565b6040519080825280601f01601f19166020018201604052801561097d576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106109b4576109b4610ea2565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106109ff576109ff610ea2565b60200101906001600160f81b031916908160001a9053506000610a23846002611101565b610a2e906001610ece565b90505b6001811115610ab3577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610a6f57610a6f610ea2565b1a60f81b828281518110610a8557610a85610ea2565b60200101906001600160f81b031916908160001a90535060049490941c93610aac816111b4565b9050610a31565b508315610b025760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610190565b9392505050565b60606000610b1683610ba9565b600101905060008167ffffffffffffffff811115610b3657610b3661119e565b6040519080825280601f01601f191660200182016040528015610b60576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084610b6a57509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610bf2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610c1e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610c3c57662386f26fc10000830492506010015b6305f5e1008310610c54576305f5e100830492506008015b6127108310610c6857612710830492506004015b60648310610c7a576064830492506002015b600a83106107f55760010192915050565b60008083601f840112610c9d57600080fd5b50813567ffffffffffffffff811115610cb557600080fd5b6020830191508360208260051b8501011115610cd057600080fd5b9250929050565b600080600080600060608688031215610cef57600080fd5b853567ffffffffffffffff80821115610d0757600080fd5b610d1389838a01610c8b565b90975095506020880135915080821115610d2c57600080fd5b50610d3988828901610c8b565b96999598509660400135949350505050565b80356001600160a01b0381168114610d6257600080fd5b919050565b60008060008060008060808789031215610d8057600080fd5b610d8987610d4b565b9550602087013567ffffffffffffffff80821115610da657600080fd5b610db28a838b01610c8b565b90975095506040890135915080821115610dcb57600080fd5b50610dd889828a01610c8b565b979a9699509497949695606090950135949350505050565b60008060008060008060008060a0898b031215610e0c57600080fd5b610e1589610d4b565b9750602089013567ffffffffffffffff80821115610e3257600080fd5b610e3e8c838d01610c8b565b909950975060408b0135915080821115610e5757600080fd5b610e638c838d01610c8b565b909750955060608b0135915080821115610e7c57600080fd5b50610e898b828c01610c8b565b999c989b50969995989497949560800135949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156107f5576107f5610eb8565b600060208284031215610ef357600080fd5b610b0282610d4b565b60005b83811015610f17578181015183820152602001610eff565b50506000910152565b60008351610f32818460208801610efc565b835190830190610f46818360208801610efc565b7f2c000000000000000000000000000000000000000000000000000000000000009101908152600101949350505050565b600060018201610f8957610f89610eb8565b5060010190565b6000808335601e19843603018112610fa757600080fd5b83018035915067ffffffffffffffff821115610fc257600080fd5b602001915036819003821315610cd057600080fd5b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008261104857634e487b7160e01b600052601260045260246000fd5b500490565b7f6661696c656420746f207472616e7366657220746f2000000000000000000000815260008351611085816016850160208801610efc565b7f206164647265737365733a20000000000000000000000000000000000000000060169184019182015283516110c2816022840160208801610efc565b01602201949350505050565b60208152600082518060208401526110ed816040850160208701610efc565b601f01601f19169190910160400192915050565b80820281158282048414176107f5576107f5610eb8565b7fffffffff000000000000000000000000000000000000000000000000000000008316815260008251611152816004850160208701610efc565b919091016004019392505050565b60008251611172818460208701610efc565b9190910192915050565b60006020828403121561118e57600080fd5b81518015158114610b0257600080fd5b634e487b7160e01b600052604160045260246000fd5b6000816111c3576111c3610eb8565b50600019019056fe7472616e7366657246726f6d28616464726573732c616464726573732c75696e7432353629736166655472616e7366657246726f6d28616464726573732c616464726573732c75696e743235362c627974657329a2646970667358221220a1603cc47b78d9e21bea8b6a1151c48c6ee94c5905a9759bff5312df8afcd98364736f6c63430008130033
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.