Sponsored Link:  Download the Monaco app for Android and iOS on Aug 31 - www.mona.co
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 7 txns
  Latest 7 txns

TxHash Age From To Value [TxFee]
0x3c4442daa886a6a3029559927b642cee7e7c82564c481a3b626580b8aafd904d8 days 1 hr ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN   0x53a30b07bea5b8e9b5f710e038867a1531b0b5dc0 Ether0.037638216
0x7d98273512ad7f4989661087abbbc91c2129c08a5387a7f0645d0e9d426b6af08 days 3 hrs ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN   0x53a30b07bea5b8e9b5f710e038867a1531b0b5dc0 Ether0.072
0xcfeef49a7295f800df0a069ecf9686abc4394d433ec04cfbefe353995158e2c58 days 4 hrs ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN   0x53a30b07bea5b8e9b5f710e038867a1531b0b5dc0 Ether0.072
0xc0058c313f1e9a31e00cbf005fc4cf7e46712678ca9c50dbbba5feddbc119d418 days 4 hrs ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN   0x53a30b07bea5b8e9b5f710e038867a1531b0b5dc0 Ether0.08338988
0xeb981474a93acc5da43a54186218ed4c6b444cf3abed5b8cf7cc86b517cac1f38 days 5 hrs ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN   0x53a30b07bea5b8e9b5f710e038867a1531b0b5dc0 Ether0.00175
0x5f8affe0daeac90de8642c560cf2727bcbf718e1bad2b750bfd35b44ad3ad8368 days 5 hrs ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN   0x53a30b07bea5b8e9b5f710e038867a1531b0b5dc0 Ether0.000471435
0x446a0501bbee85ededac0252eef7c5ae01e504e463f52b545b688f75942fd9158 days 5 hrs ago0x7ecdc55af01cd035279916c76cad9d9771faf45a  IN    Contract Creation0 Ether0.001674725
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified
Contract Name: Multiplexer
Compiler Version: v0.4.16+commit.d7661dd9
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.16;

contract ERC20 {
  function transferFrom( address from, address to, uint value) returns (bool ok);
}

/// @title Multiplexer
/// @author Chris Hitchcott
/// :repository https://github.com/DigixGlobal/multiplexer

contract Multiplexer {

	function sendEth(address[] _to, uint256[] _value) payable returns (bool _success) {
		// input validation
		assert(_to.length == _value.length);
		assert(_to.length <= 255);
		// count values for refunding sender
		uint256 beforeValue = msg.value;
		uint256 afterValue = 0;
		// loop through to addresses and send value
		for (uint8 i = 0; i < _to.length; i++) {
			afterValue = afterValue + _value[i];
			assert(_to[i].send(_value[i]));
		}
		// send back remaining value to sender
		uint256 remainingValue = beforeValue - afterValue;
		if (remainingValue > 0) {
			assert(msg.sender.send(remainingValue));
		}
		return true;
	}

	function sendErc20(address _tokenAddress, address[] _to, uint256[] _value) returns (bool _success) {
		// input validation
		assert(_to.length == _value.length);
		assert(_to.length <= 255);
		// use the erc20 abi
		ERC20 token = ERC20(_tokenAddress);
		// loop through to addresses and send value
		for (uint8 i = 0; i < _to.length; i++) {
			assert(token.transferFrom(msg.sender, _to[i], _value[i]) == true);
		}
		return true;
	}
}

  Contract ABI  
[{"constant":false,"inputs":[{"name":"_to","type":"address[]"},{"name":"_value","type":"uint256[]"}],"name":"sendEth","outputs":[{"name":"_success","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenAddress","type":"address"},{"name":"_to","type":"address[]"},{"name":"_value","type":"uint256[]"}],"name":"sendErc20","outputs":[{"name":"_success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b5b6104288061001f6000396000f300606060405263ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166325245b268114610048578063aee25613146100e0575b600080fd5b6100cc60046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437820191505050505050919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061019e95505050505050565b604051901515815260200160405180910390f35b34156100eb57600080fd5b6100cc6004803573ffffffffffffffffffffffffffffffffffffffff16906044602480359081019083013580602080820201604051908101604052809392919081815260200183836020028082843782019150505050505091908035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437509496506102c395505050505050565b604051901515815260200160405180910390f35b600080600080600085518751146101b157fe5b60ff875111156101bd57fe5b34935060009250600091505b86518260ff16101561026b57858260ff16815181106101e457fe5b9060200190602002015183019250868260ff168151811061020157fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff166108fc878460ff168151811061023357fe5b906020019060200201519081150290604051600060405180830381858888f19350505050151561025f57fe5b5b6001909101906101c9565b5081830360008111156102b35773ffffffffffffffffffffffffffffffffffffffff331681156108fc0282604051600060405180830381858888f1935050505015156102b357fe5b5b600194505b5050505092915050565b600080600083518551146102d357fe5b60ff855111156102df57fe5b5084905060005b84518160ff1610156103ee578173ffffffffffffffffffffffffffffffffffffffff166323b872dd33878460ff168151811061031e57fe5b90602001906020020151878560ff168151811061033757fe5b906020019060200201516000604051602001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff861602815273ffffffffffffffffffffffffffffffffffffffff93841660048201529190921660248201526044810191909152606401602060405180830381600087803b15156103bf57600080fd5b6102c65a03f115156103d057600080fd5b5050506040518051151560011490506103e557fe5b5b6001016102e6565b600192505b505093925050505600a165627a7a72305820763d8bfb0eb7d6bc9acfa299ea0a327f3f3ec61cce677a66aded01ffcdd48f420029

   Swarm Source:
bzzr://763d8bfb0eb7d6bc9acfa299ea0a327f3f3ec61cce677a66aded01ffcdd48f42
View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.