Contract Overview
Balance: 0.1154 Ether
Ether Value: $14.45 (@ $125.21/ETH)
Transactions: 23 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x90dc186751998e92a3d5dff05be84f2f9a5ae502at txn 0x282b98bb87b83dd284412a00e85b91c11a2fc1fb4f629eea06e1c52e6e0ab26d
Token Balance:
 Latest 23 txns

TxHash Age From To Value [TxFee]
0x1e01c3d3dc9f8af45a8408740f5befa83d39f8065e4c94f2049499a68386a7d1180 days 12 hrs ago0x6f7e73b95d03d52ab3280734444f1ccdcf03be36  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.0001 Ether0.00091246
0x1f66540531e12a50a9c8d6c975a212efde4822c6e3ea23d1ed71e28764785972191 days 6 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.005 Ether0.000364984
0x5818e0a43c8ea5faea1ec158a0544bac370c00c615851d1ff021a49f91574fa7191 days 6 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.000373875
0xeadfe60cf09a68babeb079fe4361db7714a27e8ad37ac6bedab38d088f9d3286191 days 6 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.000373875
0x7d6d3932c779965d66a5f641f59c27a2e9c992ece0f6a4fb949998c3765196c0191 days 6 hrs ago0x1db7332d24ebbdc5f49c34aa6830cb7f46a3647c  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.1 Ether0.000364984
0x0ef9dbc653ce584d9a8a4db417bf0a4e6d5f425b53e9d72fb94a95430d2a5e7e204 days 14 hrs ago0x6f7e73b95d03d52ab3280734444f1ccdcf03be36  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.0001 Ether0.00364984
0x363ebc09415db04c775a7a9d2d6fd42f975692bd4de631a99ebb0672acd42279208 days 11 hrs ago0x4056f3f55c338e22330002924023025df61a9d3b  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.01 Ether0.000182492
0xf5df4a8b028c466646d4f654b7d58d6f6208fe1c7f769678d5db102cdd081839208 days 13 hrs ago0x6f7e73b95d03d52ab3280734444f1ccdcf03be36  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.000071769
0x54cfc5b04f5b048d4918775c6b11557525552772d8279fc341b2883c24f35a7d208 days 23 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.000377715
0xba19181112fc69fb23a8c3b720d463ebede7483f0ffacc2c3eb8dfc7108ef7d9209 days 23 hrs ago0x13ebd3443fa5575f0eb173e323d8419f7452cfb1  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.0001 Ether0.000091246
0xdb7f26659ff1ca9aa27eb3fab674a44de7ccae079456a9697137001193f0859e209 days 23 hrs ago0x13ebd3443fa5575f0eb173e323d8419f7452cfb1  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.0001 Ether0.000091246
0xe2e6eb1e9b361bab483fe8048c73636d9d620738711e5cdf890003493cfb9709210 days 37 mins ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.00083829
0xb52d672ee309da60ea61495b13ffdb710e472aa56ce4c4577dec10cbb3b0cb58210 days 47 mins ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.005 Ether0.000091246
0x0f656c2c6a1d65777406c3c37f1093cd075b2e4808a25354c6388edfb18b4f44210 days 49 mins ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.00083829
0x399263e1b8c9ac1185b9de6e1851f011b3d63faa3d7eda1d7cf6ae19f82af805210 days 57 mins ago0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.001 Ether0.000091246
0x1b5c69059c4af9ddfe27a004907fb4ce3f0c75a40fd00bc5a338d622ab2962f1210 days 1 hr ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.00083829
0x1c89f034f90f12a36d82fc00820b26d75dcef8fa5259c7eb3bb4a1bc46a52b38211 days 21 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.000111783177
0xaef678fa191dc8290057ce77356e63649018d62c0d2b3b965e9f4d7a361b8e31211 days 21 hrs ago0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.002 Ether0.000182364
0x35b4bae58053e794512151d88008a5840a8f3e6f9d72c4777fb20a9df4404bd5211 days 21 hrs ago0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.007 Ether0.000091246
0xf8552574015a87ebf5cfbdbaf529618cc570f50a495a45077045596f754a0933211 days 21 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390 Ether0.0001173606
0xd83e68237294abac491a1bd0f25f51d8f4a9e437fde8972f0b1026584d15482a211 days 21 hrs ago0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7  IN   0xa3d9390a34ad30262d6c364d80d5ebefc50838390.002 Ether0.0001003706
0x282b98bb87b83dd284412a00e85b91c11a2fc1fb4f629eea06e1c52e6e0ab26d211 days 21 hrs ago0x90dc186751998e92a3d5dff05be84f2f9a5ae502  IN    Contract Creation0 Ether0.000521653
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 5 Internal Transactions

ParentTxHash Block Age From To Value
0xe2e6eb1e9b361bab483fe8048c73636d9d620738711e5cdf890003493cfb97095500433210 days 37 mins ago0xa3d9390a34ad30262d6c364d80d5ebefc50838390x90dc186751998e92a3d5dff05be84f2f9a5ae5020.005 Ether
0x0f656c2c6a1d65777406c3c37f1093cd075b2e4808a25354c6388edfb18b4f445500383210 days 49 mins ago0xa3d9390a34ad30262d6c364d80d5ebefc50838390x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b70.001 Ether
0x1b5c69059c4af9ddfe27a004907fb4ce3f0c75a40fd00bc5a338d622ab2962f15500320210 days 1 hr ago0xa3d9390a34ad30262d6c364d80d5ebefc50838390x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b70.002 Ether
0x1c89f034f90f12a36d82fc00820b26d75dcef8fa5259c7eb3bb4a1bc46a52b385489770211 days 21 hrs ago0xa3d9390a34ad30262d6c364d80d5ebefc50838390x90dc186751998e92a3d5dff05be84f2f9a5ae5020.007 Ether
0xf8552574015a87ebf5cfbdbaf529618cc570f50a495a45077045596f754a09335489690211 days 21 hrs ago0xa3d9390a34ad30262d6c364d80d5ebefc50838390x90dc186751998e92a3d5dff05be84f2f9a5ae5020.002 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: EtherCashLink
Compiler Text: v0.4.23+commit.124ca40d
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18;


contract EtherCashLink {


    struct Payment {
        bool paid;
        bytes32 verification;
        uint amount;
        bool exists;
        address sender;
    }

    mapping(bytes32 => Payment) public payments;
    

    event GotPaid(address sender, address receiver, uint amount, bytes32 verification); // Event
    event LinkCreated(address sender, uint amount, bytes32 verification); // Event

    modifier onlyIfValidCode(string _passcode) {
        require(keccak256(_passcode) == payments[keccak256(_passcode)].verification);
        _;
    }

    modifier onlyIfNotPaid(string _passcode) {
        require(!payments[keccak256(_passcode)].paid);
        _;
    }

    function createLink(bytes32 _verification) public payable {
        require(!payments[_verification].exists);
        require(msg.value > 0);
        var newPayment = payments[_verification];
        newPayment.paid = false;
        newPayment.verification = _verification;
        newPayment.amount = msg.value;
        newPayment.exists = true;
        newPayment.sender = msg.sender;
        emit LinkCreated(newPayment.sender, newPayment.amount,  newPayment.verification);

    }

    function getPaid(string _passcode, address _receiver) 
        onlyIfValidCode(_passcode) 
        onlyIfNotPaid(_passcode) 
        public returns (bool) {
        payments[keccak256(_passcode)].paid = true;
        _receiver.transfer(payments[keccak256(_passcode)].amount);
        return true;
        emit GotPaid(payments[keccak256(_passcode)].sender, _receiver,payments[keccak256(_passcode)].amount, payments[keccak256(_passcode)].verification);
    }
    
    function wasPaid(bytes32 _verification) public view returns (bool) {
        return (payments[_verification].paid);
    }

   
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"payments","outputs":[{"name":"paid","type":"bool"},{"name":"verification","type":"bytes32"},{"name":"amount","type":"uint256"},{"name":"exists","type":"bool"},{"name":"sender","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_verification","type":"bytes32"}],"name":"wasPaid","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_verification","type":"bytes32"}],"name":"createLink","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_passcode","type":"string"},{"name":"_receiver","type":"address"}],"name":"getPaid","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"receiver","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"verification","type":"bytes32"}],"name":"GotPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"verification","type":"bytes32"}],"name":"LinkCreated","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b506106e3806100206000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630716326d81146100665780630bf9fd52146100b6578063abb58fd3146100e2578063d6233491146100ef575b600080fd5b34801561007257600080fd5b5061007e600435610153565b60408051951515865260208601949094528484019290925215156060840152600160a060020a03166080830152519081900360a00190f35b3480156100c257600080fd5b506100ce60043561018f565b604080519115158252519081900360200190f35b6100ed6004356101a4565b005b3480156100fb57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526100ce94369492936024939284019190819084018382808284375094975050509235600160a060020a0316935061027d92505050565b600060208190529081526040902080546001820154600283015460039093015460ff9283169391928116906101009004600160a060020a031685565b60009081526020819052604090205460ff1690565b60008181526020819052604081206003015460ff16156101c357600080fd5b600034116101d057600080fd5b5060008181526020818152604091829020805460ff1990811682556001808301869055346002840181905560038401805490931690911774ffffffffffffffffffffffffffffffffffffffff00191661010033600160a060020a0390811682029290921793849055865193041682529281019290925281830184905291517f7fcf81d83a296eca9ecc2f273fb8353ce1a5c2d1acad79871f7d5101b1c2e573916060908290030190a15050565b600082600080826040518082805190602001908083835b602083106102b35780518252601f199092019160209182019101610294565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120865285810196909652509283016000206001015492518551939486949193508392508401908083835b602083106103235780518252601f199092019160209182019101610304565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614151561036057600080fd5b83600080826040518082805190602001908083835b602083106103945780518252601f199092019160209182019101610375565b51815160209384036101000a600019018019909216911617905260408051929094018290039091208652850195909552929092016000205460ff161592506103de91505057600080fd5b6001600080876040518082805190602001908083835b602083106104135780518252601f1990920191602091820191016103f4565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120865285810196909652509283016000908120805460ff1916961515969096179095555050518751600160a060020a038816936108fc93909283928b928291908401908083835b602083106104a05780518252601f199092019160209182019101610481565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120865285019590955292830160009081206002015493518415969096029593945091508290508181858888f19350505050158015610509573d6000803e3d6000fd5b50600192506106af565b602083106105325780518252601f199092019160209182019101610513565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060030160019054906101000a9004600160a060020a031685600080896040518082805190602001908083835b602083106105c05780518252601f1990920191602091820191016105a1565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600201546000808a6040518082805190602001908083835b6020831061063a5780518252601f19909201916020918201910161061b565b51815160001960209485036101000a01908116901991909116179052604080519490920184900390932086528583019690965250928401600020600101548451600160a060020a0398891681529690971692860192909252505082810191909152606082019290925290519081900360800190a15b5050929150505600a165627a7a72305820ef285b2c737178c41f7fc23e4af02c33c99201afe8ba46ac3a0dc64fe7db6f710029

   Swarm Source:
bzzr://ef285b2c737178c41f7fc23e4af02c33c99201afe8ba46ac3a0dc64fe7db6f71

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.