Contract 0x5634fb504bd6b5a9f2331e49f2296d534d22d77d

Contract Overview

Balance:
0 Ether
Txn Hash
Block
From
To
Value
0x09e1ba2cd96040a8b5af848ccd1424488e59e1e77150f6f6d60e15a0099e21a126929472018-07-24 20:31:49957 days 21 hrs ago0x91612055a68ad74a6e756615941ac59e9220a940 IN  0x5634fb504bd6b5a9f2331e49f2296d534d22d77d4 Ether0.000041781
0xc3361169b0a1d7fc094d64df3a0f184e38836cd1222912a2beb305ea3a387fd826929322018-07-24 20:28:04957 days 21 hrs ago0x91612055a68ad74a6e756615941ac59e9220a940 IN  0x5634fb504bd6b5a9f2331e49f2296d534d22d77d0 Ether0.0000218431
0xf6b4dbf7285e27ac661ef0bda6b3ff5cd0519be95e8fe0a17b1cd1a85f74c9e026929222018-07-24 20:25:34957 days 21 hrs ago0x91612055a68ad74a6e756615941ac59e9220a940 IN  0x5634fb504bd6b5a9f2331e49f2296d534d22d77d0 Ether0.0000642641
0x809a8c5ca8f4a638a1b564d2868ba9751515339c1e044d11494639fd7804082326928962018-07-24 20:19:04957 days 21 hrs ago0x91612055a68ad74a6e756615941ac59e9220a940 IN  0x5634fb504bd6b5a9f2331e49f2296d534d22d77d0 Ether0.0000642641
0x72a20d0b3e0b9266e6852147303e8006f6eb3287db6c457813930f768d5b7a3126928902018-07-24 20:17:34957 days 21 hrs ago0x91612055a68ad74a6e756615941ac59e9220a940 IN  Contract Creation0 Ether0.0003224721
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x09e1ba2cd96040a8b5af848ccd1424488e59e1e77150f6f6d60e15a0099e21a126929472018-07-24 20:31:49957 days 21 hrs ago 0x5634fb504bd6b5a9f2331e49f2296d534d22d77d0x91612055a68ad74a6e756615941ac59e9220a9404 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Contrato_contacto_legal

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-07-24
*/

pragma solidity ^0.4.16;

contract owned {
    address public owner;

    function owned() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}

contract Contrato_contacto_legal is owned{
    struct Contrato {
        uint256 coste_ether;
        bool pagado;
        address cuenta_pagador;
    }
    
    mapping (uint256 => Contrato) public contratos;
    
    event Alta(uint256 referencia, uint256 coste_en_ether);
    event Compra( uint256 referencia, uint256 coste_en_ether, address comprador);
    
    function dar_alta_contrato( uint256 _referencia, uint256 _coste_en_ether ) onlyOwner public {
        contratos[ _referencia] = Contrato(_coste_en_ether, false, owner);
        Alta( _referencia, _coste_en_ether);
    }
    
    function pagar_contrato( uint256 _referencia) payable public {
        require ( msg.value >= contratos[ _referencia].coste_ether );
        owner.transfer(msg.value);
        contratos[ _referencia] = Contrato(msg.value, true, msg.sender);
        Compra(_referencia, msg.value, msg.sender);
    }
}

Contract ABI

[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"contratos","outputs":[{"name":"coste_ether","type":"uint256"},{"name":"pagado","type":"bool"},{"name":"cuenta_pagador","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_referencia","type":"uint256"}],"name":"pagar_contrato","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_referencia","type":"uint256"},{"name":"_coste_en_ether","type":"uint256"}],"name":"dar_alta_contrato","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"referencia","type":"uint256"},{"indexed":false,"name":"coste_en_ether","type":"uint256"}],"name":"Alta","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"referencia","type":"uint256"},{"indexed":false,"name":"coste_en_ether","type":"uint256"},{"indexed":false,"name":"comprador","type":"address"}],"name":"Compra","type":"event"}]

608060405260008054600160a060020a031916331790556103aa806100256000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633a00a1d181146100715780638da5cb5b146100b05780639da2003b146100e1578063dd984f7a146100ee578063f2fde38b14610109575b600080fd5b34801561007d57600080fd5b5061008960043561012a565b604080519384529115156020840152600160a060020a031682820152519081900360600190f35b3480156100bc57600080fd5b506100c5610156565b60408051600160a060020a039092168252519081900360200190f35b6100ec600435610165565b005b3480156100fa57600080fd5b506100ec60043560243561026d565b34801561011557600080fd5b506100ec600160a060020a0360043516610338565b6001602081905260009182526040909120805491015460ff8116906101009004600160a060020a031683565b600054600160a060020a031681565b60008181526001602052604090205434101561018057600080fd5b60008054604051600160a060020a03909116913480156108fc02929091818181858888f193505050501580156101ba573d6000803e3d6000fd5b50604080516060818101835234808352600160208085018281523386880181815260008a81528585528990209751885591519690930180549151600160a060020a03166101000274ffffffffffffffffffffffffffffffffffffffff001997151560ff199093169290921796909616179094558451868152938401919091528284015291517f7ca362c9854e38b6aa5a1c0d6f3daf7d9bcb7554d3eee8ad150a4cdb97ce0a71929181900390910190a150565b600054600160a060020a0316331461028457600080fd5b60408051606081018252828152600060208083018281528254600160a060020a03908116858701908152888552600180855294879020955186559151949093018054915160ff199092169415159490941774ffffffffffffffffffffffffffffffffffffffff001916610100919093160291909117909155815184815290810183905281517fc27301664abd824273d26adf34d6f72ecbd234fc77e036af48bbc267d62b2eff929181900390910190a15050565b600054600160a060020a0316331461034f57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058209aad382d5a1e3506802831196510f073dd7227295272a59cfbff0b0073e048970029

Swarm Source

bzzr://9aad382d5a1e3506802831196510f073dd7227295272a59cfbff0b0073e04897
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading