Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- DistributeETH
- Optimization enabled
- true
- Compiler version
- v0.4.25-nightly.2018.6.18+commit.4247b004
- Optimization runs
- 200
- EVM Version
- byzantium
- Verified at
- 2026-04-22T00:20:36.634377Z
DistributeETH.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
contract DistributeETH is Ownable {
function distribute(address[] _addrs, uint[] _bals) onlyOwner{
for(uint i = 0; i < _addrs.length; ++i){
if(!_addrs[i].send(_bals[i])) throw;
}
}
function () payable {}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"byzantium","compilationTarget":{"DistributeETH.sol":"DistributeETH"}}
Contract ABI
[{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"distribute","inputs":[{"type":"address[]","name":"_addrs"},{"type":"uint256[]","name":"_bals"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"owner","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner"}],"constant":false},{"type":"fallback","stateMutability":"payable","payable":true},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false}]
Contract Creation Code
0x608060405260008054600160a060020a031916331790556102a3806100256000396000f3006080604052600436106100565763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632929abe681146100585780638da5cb5b146100f2578063f2fde38b14610123575b005b34801561006457600080fd5b5060408051602060048035808201358381028086018501909652808552610056953695939460249493850192918291850190849080828437600092019190915250506040805185358701803560208181028481018201909552818452969998978701969295509082019350918291850190849080828437600092019190915250929550610144945050505050565b3480156100fe57600080fd5b506101076101d4565b60408051600160a060020a039092168252519081900360200190f35b34801561012f57600080fd5b50610056600160a060020a03600435166101e3565b60008054600160a060020a0316331461015c57600080fd5b5060005b82518110156101cf57828181518110151561017757fe5b90602001906020020151600160a060020a03166108fc838381518110151561019b57fe5b602090810290910101516040518115909202916000818181858888f1935050505015156101c757600080fd5b600101610160565b505050565b600054600160a060020a031681565b600054600160a060020a031633146101fa57600080fd5b600160a060020a038116151561020f57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582005b1bb7e4ba414ce45ac953f5b53f10a9391a1fcf60c14f726f4e65cd624cb810029
Deployed ByteCode
0x6080604052600436106100565763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632929abe681146100585780638da5cb5b146100f2578063f2fde38b14610123575b005b34801561006457600080fd5b5060408051602060048035808201358381028086018501909652808552610056953695939460249493850192918291850190849080828437600092019190915250506040805185358701803560208181028481018201909552818452969998978701969295509082019350918291850190849080828437600092019190915250929550610144945050505050565b3480156100fe57600080fd5b506101076101d4565b60408051600160a060020a039092168252519081900360200190f35b34801561012f57600080fd5b50610056600160a060020a03600435166101e3565b60008054600160a060020a0316331461015c57600080fd5b5060005b82518110156101cf57828181518110151561017757fe5b90602001906020020151600160a060020a03166108fc838381518110151561019b57fe5b602090810290910101516040518115909202916000818181858888f1935050505015156101c757600080fd5b600101610160565b505050565b600054600160a060020a031681565b600054600160a060020a031633146101fa57600080fd5b600160a060020a038116151561020f57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582005b1bb7e4ba414ce45ac953f5b53f10a9391a1fcf60c14f726f4e65cd624cb810029