Sponsored Link: Crowdsale has finished. Check out the KICKICO platform to find new ICOs to start.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 1 txn
  Latest 1 txn

TxHash Age From To Value [TxFee]
0x67ade1762b3fefbd0ec0606774c871ed78a3f653e63da9e225c91f8538a0d5eb8 days 6 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

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
6060604052341561000f57600080fd5b5b6104288061001f6000396000f300606060405263ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166325245b268114610048578063aee25613146100e0575b600080fd5b6100cc60046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437820191505050505050919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061019e95505050505050565b604051901515815260200160405180910390f35b34156100eb57600080fd5b6100cc6004803573ffffffffffffffffffffffffffffffffffffffff16906044602480359081019083013580602080820201604051908101604052809392919081815260200183836020028082843782019150505050505091908035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437509496506102c395505050505050565b604051901515815260200160405180910390f35b600080600080600085518751146101b157fe5b60ff875111156101bd57fe5b34935060009250600091505b86518260ff16101561026b57858260ff16815181106101e457fe5b9060200190602002015183019250868260ff168151811061020157fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff166108fc878460ff168151811061023357fe5b906020019060200201519081150290604051600060405180830381858888f19350505050151561025f57fe5b5b6001909101906101c9565b5081830360008111156102b35773ffffffffffffffffffffffffffffffffffffffff331681156108fc0282604051600060405180830381858888f1935050505015156102b357fe5b5b600194505b5050505092915050565b600080600083518551146102d357fe5b60ff855111156102df57fe5b5084905060005b84518160ff1610156103ee578173ffffffffffffffffffffffffffffffffffffffff166323b872dd33878460ff168151811061031e57fe5b90602001906020020151878560ff168151811061033757fe5b906020019060200201516000604051602001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff861602815273ffffffffffffffffffffffffffffffffffffffff93841660048201529190921660248201526044810191909152606401602060405180830381600087803b15156103bf57600080fd5b6102c65a03f115156103d057600080fd5b5050506040518051151560011490506103e557fe5b5b6001016102e6565b600192505b505093925050505600a165627a7a723058208fb796430a2f6b695751ec6dc1608fac1e8bf7e01e55d98d6d123189886d5e010029

   Swarm Source:
bzzr://8fb796430a2f6b695751ec6dc1608fac1e8bf7e01e55d98d6d123189886d5e01
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.