Latest 4 txns

TxHash Age From To Value [TxFee]
0xe192b89bdd57408ce44935c37dab42f89c1847653e9a650253e5fdf36f111946634 days 7 hrs ago0x00a21b57e41dbc4dcf38dbdaeb425d8ac3cf6544  IN   0x5caae211dca5d774ad930e23c821c2bfa68d6e824 Ether0.0087712
0x903843af10537fa5ba056f5ad94baff48f2df9e2409bb070967eca24a0b413cd634 days 7 hrs ago0x00a21b57e41dbc4dcf38dbdaeb425d8ac3cf6544  IN   0x5caae211dca5d774ad930e23c821c2bfa68d6e820 Ether0.0043912
0xa8cd483cdb1ea2deebcb256edf06f6b9ca130735c00a6bd1908bff54b2106d31634 days 7 hrs ago0x00a21b57e41dbc4dcf38dbdaeb425d8ac3cf6544  IN   0x5caae211dca5d774ad930e23c821c2bfa68d6e820 Ether0.0043912
0x4e3d79de92f2cb841812d3167c0cf5c34d6a8b7e167b1b0ff96a46ecfd230684634 days 7 hrs ago0x00a21b57e41dbc4dcf38dbdaeb425d8ac3cf6544  IN    Contract Creation0 Ether0.0461183
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0xe192b89bdd57408ce44935c37dab42f89c1847653e9a650253e5fdf36f111946261089634 days 7 hrs ago0x5caae211dca5d774ad930e23c821c2bfa68d6e820x00102b3b69f04dcdabdf1c779079213e92c10aa52 Ether
0xe192b89bdd57408ce44935c37dab42f89c1847653e9a650253e5fdf36f111946261089634 days 7 hrs ago0x5caae211dca5d774ad930e23c821c2bfa68d6e820x007733a1fe69cf3f2cf989f81c7b4cac1693387a2 Ether
[ Download CSV Export  ] 
Contract Name: FaucetSend
Compiler Text: v0.4.7-nightly.2016.12.11+commit.84d4f3da
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.6;

/**
 * Standard 'owned' contract.
 */
contract owned {
	address owner;
	function owned() {
		owner = msg.sender;
	}

	modifier ownerOnly (){
		if (msg.sender != owner) throw;
		_;
	}
}

/**
 * An helpful contract for faucets and refunds.
 */
contract FaucetSend is owned{
	uint public VERSION = 2;

	mapping (address => uint) public contribs;
	mapping (address => bool) public whitelist;

	uint public total;

	function FaucetSend() {
		total = 0 wei;
	}

	event Sent(address from, address to, string message);

	function setWhiteList(address addr, bool state) ownerOnly {
		if (state)
			whitelist[addr] = state;
		else
			delete whitelist[addr];
	}

	/**
	 * Send equal payments to each of the address provided as input.
	 */
	function send(address[] recipients, string message) payable {
		for (uint i=0; i < recipients.length; i++) {
			address recipient = recipients[i]; 
			bool res;
			if (recipient != msg.sender) {	
				res = recipient.send(msg.value/recipients.length);
				Sent(msg.sender, recipient, message);
			}
		}
		contribs[msg.sender] += msg.value;
		total += msg.value;
	}

	/**
	 * Users who do no longer need their test ETH can send it back
	 * to the faucet.
	 */
	function () payable {}

	/**
	 * If funds remain into the faucet, the owner
	 * can send the funds to himself.
	 */
	function withdrawAll() ownerOnly {
		if(!owner.send(this.balance)) throw;
	}

	modifier whitelistOnly () {
		if (!whitelist[msg.sender]) throw;
		_;
	}

	modifier contribOnly () {
		if (contribs[msg.sender] <= 0) throw;
		_;
	}
	/**
	 * When users send back funds to the faucet,
	 * whitelisted contribs can get back a part of it depending on
	 * how big was their contrib.
	 */
	function withdraw() whitelistOnly contribOnly {
		uint amount = this.balance * contribs[msg.sender] / total;
		if (!msg.sender.send(amount)) throw;
		contribs[msg.sender] = 0;
		total -= amount;
	}
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"recipients","type":"address[]"},{"name":"message","type":"string"}],"name":"send","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"total","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"contribs","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"state","type":"bool"}],"name":"setWhiteList","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"whitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"message","type":"string"}],"name":"Sent","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052600260015534610000575b5b60008054600160a060020a03191633600160a060020a03161790555b60006004555b5b61054a806100426000396000f300606060405236156100725763ffffffff60e060020a6000350416632c4dd0b2811461007b5780632ddbd13a146101055780633ccfd60b14610124578063539928aa14610133578063853828b61461015e5780638d14e1271461016d5780639b19251a1461018d578063ffa1ad74146101ba575b6100795b5b565b005b61007960048080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375050604080516020601f89358b018035918201839004830284018301909452808352979998810197919650918201945092508291508401838280828437509496506101d995505050505050565b005b3461000057610112610352565b60408051918252519081900360200190f35b3461000057610079610358565b005b3461000057610112600160a060020a0360043516610428565b60408051918252519081900360200190f35b346100005761007961043a565b005b3461000057610079600160a060020a03600435166024351515610492565b005b34610000576101a6600160a060020a0360043516610503565b604080519115158252519081900360200190f35b3461000057610112610518565b60408051918252519081900360200190f35b600080805b845183101561032057848381518110156100005790602001906020020151915033600160a060020a031682600160a060020a03161415156103145781600160a060020a03166108fc865134811561000057604051919004801590920291906000818181858888f1935050505090507fcf90475cb2ee903c10b68165beed0e4b4c73f29a9d314f30a1dd25d17a259bc83383866040518084600160a060020a0316600160a060020a0316815260200183600160a060020a0316600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f11561000057905090810190601f1680156103045780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15b5b6001909201916101de565b600160a060020a03331660009081526002602052604090208054349081019091556004805490910190555b5050505050565b60045481565b600160a060020a03331660009081526003602052604081205460ff16151561037f57610000565b600160a060020a033316600090815260026020526040812054116103a257610000565b600454600160a060020a033381166000908152600260205260409020543090911631028115610000576040519190049150600160a060020a0333169082156108fc029083906000818181858888f19350505050151561040057610000565b600160a060020a0333166000908152600260205260408120556004805482900390555b5b5b50565b60026020526000908152604090205481565b60005433600160a060020a0390811691161461045557610000565b60008054604051600160a060020a0391821692309092163180156108fc0292909190818181858888f19350505050151561007657610000565b5b5b565b60005433600160a060020a039081169116146104ad57610000565b80156104dc57600160a060020a0382166000908152600360205260409020805460ff19168215151790556104fd565b600160a060020a0382166000908152600360205260409020805460ff191690555b5b5b5050565b60036020526000908152604090205460ff1681565b600154815600a165627a7a72305820cc6fa424ead8e469c13630e754e79f16e738d690df68e625e9b653017275b4930029

   Swarm Source:
bzzr://cc6fa424ead8e469c13630e754e79f16e738d690df68e625e9b653017275b493

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward