ETH Price: $1,972.95 (+0.22%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

3 Internal Transactions and 2 Token Transfers found.

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer229784472025-07-23 0:59:35214 days ago1753232375
0xC138d8ca...791887FE9
0.00875178 ETH
0x60806040229784472025-07-23 0:59:35214 days ago1753232375  Contract Creation0 ETH
Transfer229784472025-07-23 0:59:35214 days ago1753232375
0xC138d8ca...791887FE9
0.00875178 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x826786a7...841019B9C
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
ReversibleDemo

Compiler Version
v0.3.5-2016-08-07-f7af7de

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2016-08-08
*/

// `interface` would make a nice keyword ;)
contract TheDaoHardForkOracle {
    // `ran()` manually verified true on both ETH and ETC chains
    function forked() constant returns (bool);
}

// demostrates calling own function in a "reversible" manner
/* important lines are marked by multi-line comments */
contract ReversibleDemo {
    // counters (all public to simplify inspection)
    uint public numcalls;
    uint public numcallsinternal;
    uint public numfails;
    uint public numsuccesses;

    address owner;

    // needed for "naive" and "oraclized" checks
    address constant withdrawdaoaddr = 0xbf4ed7b27f1d666546e30d74d50d173d20bca754;
    TheDaoHardForkOracle oracle = TheDaoHardForkOracle(0xe8e506306ddb78ee38c9b0d86c257bd97c2536b3);

    event logCall(uint indexed _numcalls,
                  uint indexed _numfails,
                  uint indexed _numsuccesses);

    modifier onlyOwner { if (msg.sender != owner) throw; _ }
    modifier onlyThis { if (msg.sender != address(this)) throw; _ }

    // constructor (setting `owner` allows later termination)
    function ReversibleDemo() { owner = msg.sender; }

    /* external: increments stack height */
    /* onlyThis: prevent actual external calling */
    function sendIfNotForked() external onlyThis returns (bool) {
        numcallsinternal++;

        /* naive check for "is this the classic chain" */
        // guaranteed `true`: enough has been withdrawn already
        //     three million ------> 3'000'000
        if (withdrawdaoaddr.balance < 3000000 ether) {
            /* intentionally not checking return value */
            owner.send(42);
        }

        /* "reverse" if it's actually the HF chain */
        if (oracle.forked()) throw;

        // not exactly a "success": send() could have failed on classic
        return true;
    }

    // accepts value transfers
    function doCall(uint _gas) onlyOwner {
        numcalls++;

        if (!this.sendIfNotForked.gas(_gas)()) {
            numfails++;
        }
        else {
            numsuccesses++;
        }
        logCall(numcalls, numfails, numsuccesses);
    }

    function selfDestruct() onlyOwner {
        selfdestruct(owner);
    }

    // accepts value trasfers, but does nothing
    function() {}
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"numsuccesses","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numfails","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numcalls","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numcallsinternal","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"sendIfNotForked","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"selfDestruct","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_gas","type":"uint256"}],"name":"doCall","outputs":[],"type":"function"},{"inputs":[],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_numcalls","type":"uint256"},{"indexed":true,"name":"_numfails","type":"uint256"},{"indexed":true,"name":"_numsuccesses","type":"uint256"}],"name":"logCall","type":"event"}]

0x608060405234801561000f575f80fd5b5060405161035f38038061035f83398101604081905261002e91610252565b6040516370a0823160e01b81523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610072573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610096919061027f565b60405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d6004820152602481018290529091506001600160a01b0383169063095ea7b3906044016020604051808303815f875af11580156100f7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061011b9190610296565b506040805160028082526060820183525f9260208301908036833701905050905082815f8151811061014f5761014f6102b5565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610197576101976102b5565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63791ac947835f84736278be2baf659815acb4e203953a62c0fea5d3116101ed426103e86102c9565b6040518663ffffffff1660e01b815260040161020d9594939291906102ee565b5f604051808303815f87803b158015610224575f80fd5b505af1158015610236573d5f803e3d5ffd5b50736278be2baf659815acb4e203953a62c0fea5d31192505050ff5b5f60208284031215610262575f80fd5b81516001600160a01b0381168114610278575f80fd5b9392505050565b5f6020828403121561028f575f80fd5b5051919050565b5f602082840312156102a6575f80fd5b81518015158114610278575f80fd5b634e487b7160e01b5f52603260045260245ffd5b808201808211156102e857634e487b7160e01b5f52601160045260245ffd5b92915050565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b8181101561033e5783516001600160a01b0316835260209384019390920191600101610317565b50506001600160a01b03959095166060840152505060800152939250505056fe0000000000000000000000006f201747f94997b5ee8dfa706b31364e9b190288

Deployed Bytecode


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.