Contract 0x3b4a22858093b9942514ee42ed1b4bf177632ba3

Contract Overview

Balance:
1.18 Ether
TxHash Block Age From To Value [TxFee]
0x8673867d5903c9a489e3bb5f33b0c37111b82729ef32bb663f0fe1fa614bbb90388073132 days 10 hrs ago0x2b038a37e0f18e6c10373aa42e50c54ebaca55d6 IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba30.78 Ether0.002704975
0x1fa5a6798f00efddbb8e09da5a3e8e2d159fe24a7ac54cddfa7661acae6607821765299400 days 9 hrs ago0x4d7d7cb56de7c27d10314465c17db9821f9a396b IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba31 Ether0.00094707
0x4c35db2fa7310bf70a611d1fbf315ec2c4fce4bc3157ae97b64cb3608bb4213e1759330401 days 10 hrs ago0x7eb0eb7936d87b6f040a95669c1ca69fa34a57c0 IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba30.8 Ether0.000899499
0xf5a54e28ca5ac2908776cca56dbcef135e5386b94257274daaeec080c952da501759330401 days 10 hrs ago0x7eb0eb7936d87b6f040a95669c1ca69fa34a57c0 IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba31 Ether0.000899499
0xb0d488980854689f421c1bca1e0eca060866c3b558cb44d9df63edc2789759541758832401 days 12 hrs ago0x004fc10fd423ca2439c93c19bf76236af69be70e IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba30 Ether0.001298101
0x3019df9c6be148dd704c5179a46f66cddeab7fcad90e6875304331bf969bcabd1758827401 days 12 hrs ago0x004fc10fd423ca2439c93c19bf76236af69be70e IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba30 Ether0.002192311
0xe56ab1bf17549a060abc9bde8b5c83765fe1bf2efab4471ef1eff1739945ceb41758806401 days 12 hrs ago0x4d7d7cb56de7c27d10314465c17db9821f9a396b IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba30.5 Ether0.002851919
0x302f4876d6eb1ada26b0e5602cc78ae78c437fa437447ebe9cc4f6a9e83720f41758803401 days 12 hrs ago0x4d7d7cb56de7c27d10314465c17db9821f9a396b IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba31 Ether0.002851919
0xc36d42a6887dddde5289ed836cf445554ceef73e0c03a553041321b5bdcc744d1758764401 days 12 hrs ago0x004fc10fd423ca2439c93c19bf76236af69be70e IN  0x3b4a22858093b9942514ee42ed1b4bf177632ba30.5 Ether0.002851919
0x9ac2ec988e3e331b1c9a88aa457bfb1caa4f05813339b461c3499395202727dc1758718401 days 12 hrs ago0x004fc10fd423ca2439c93c19bf76236af69be70e IN  Contract Creation0 Ether0.000655676
[ Download CSV Export 

Latest 2 internal transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0xb0d488980854689f421c1bca1e0eca060866c3b558cb44d9df63edc2789759541758832401 days 12 hrs ago0x3b4a22858093b9942514ee42ed1b4bf177632ba30x004fc10fd423ca2439c93c19bf76236af69be70e1.1 Ether
0x3019df9c6be148dd704c5179a46f66cddeab7fcad90e6875304331bf969bcabd1758827401 days 12 hrs ago0x3b4a22858093b9942514ee42ed1b4bf177632ba30x4d7d7cb56de7c27d10314465c17db9821f9a396b0.5 Ether
[ Download CSV Export 

Contract Source Code Verified (Exact Match)

Contract Name:
PaymentSystem

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
No

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.18;
contract Ownable {
  address public owner;
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  function Ownable() public {
    owner = msg.sender;
  }
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }
  function transferOwnership(address newOwner) onlyOwner public {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }
}
contract PaymentSystem is Ownable {
    struct order {
        address payer;
        uint256 value;
        bool revert;
    }
    mapping(uint256 => order) public orders;
    function () public payable {
        revert();
    }
    event PaymentOrder(uint256 indexed id, address payer, uint256 value);
    function paymentOrder(uint256 _id) public payable returns(bool) {
        require(orders[_id].value==0 && msg.value>0);
        orders[_id].payer=msg.sender;
        orders[_id].value=msg.value;
        orders[_id].revert=false;
        PaymentOrder(_id, msg.sender, msg.value);
        return true;
    }
    event RevertOrder(uint256 indexed id, address payer, uint256 value);
    function revertOrder(uint256 _id) public onlyOwner returns(bool)  {
        require(orders[_id].value>0 && orders[_id].revert==false);
        orders[_id].revert=true;
        orders[_id].payer.transfer(orders[_id].value);
        RevertOrder(_id, orders[_id].payer, orders[_id].value);
        return true;
    }
    function outputMoney(address _to, uint256 _value) public onlyOwner returns(bool) {
        require(this.balance>=_value);
        _to.transfer(_value);
        return true;
    }
}

Contract ABI

[{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"paymentOrder","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"revertOrder","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"outputMoney","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"orders","outputs":[{"name":"payer","type":"address"},{"name":"value","type":"uint256"},{"name":"revert","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"uint256"},{"indexed":false,"name":"payer","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"PaymentOrder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"uint256"},{"indexed":false,"name":"payer","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"RevertOrder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

Contract Creation Code

6060604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610885806100536000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631247e91d1461007d57806341126295146100ad57806389b5ea24146100e85780638da5cb5b14610142578063a85c38ef14610197578063f2fde38b1461020c575b600080fd5b6100936004808035906020019091905050610245565b604051808215151515815260200191505060405180910390f35b34156100b857600080fd5b6100ce600480803590602001909190505061038b565b604051808215151515815260200191505060405180910390f35b34156100f357600080fd5b610128600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506105bb565b604051808215151515815260200191505060405180910390f35b341561014d57600080fd5b610155610688565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101a257600080fd5b6101b860048080359060200190919050506106ad565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182151515158152602001935050505060405180910390f35b341561021757600080fd5b610243600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610704565b005b600080600160008481526020019081526020016000206001015414801561026c5750600034115b151561027757600080fd5b336001600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034600160008481526020019081526020016000206001018190555060006001600084815260200190815260200160002060020160006101000a81548160ff021916908315150217905550817fc84883193d3a69d991d82f61928c06e179b647e413da4c20be80d8c0314c2e1b3334604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a260019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103e857600080fd5b600060016000848152602001908152602001600020600101541180156104355750600015156001600084815260200190815260200160002060020160009054906101000a900460ff161515145b151561044057600080fd5b600180600084815260200190815260200160002060020160006101000a81548160ff0219169083151502179055506001600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc60016000858152602001908152602001600020600101549081150290604051600060405180830381858888f1935050505015156104fa57600080fd5b817f97cc8403b1637c3e134a980df093e9ca9b49d4552bd3e03be48202342d7104886001600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001600086815260200190815260200160002060010154604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a260019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561061857600080fd5b813073ffffffffffffffffffffffffffffffffffffffff16311015151561063e57600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050151561067e57600080fd5b6001905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020160009054906101000a900460ff16905083565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561075f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561079b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820a828f214d629d68125e5b3dea70ff91f6dca02b955cd3ca879ac030b154e29c50029

Swarm Source

bzzr://a828f214d629d68125e5b3dea70ff91f6dca02b955cd3ca879ac030b154e29c5
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward