API query examples
Our API endpoint is located at https://dcred.eu/api/api
Query examples with links are located below.

URL: https://dcred.eu/api/api?q=network
RESPONSE:
{
    "success": true,
    "lastUpdate": 1534901109,
    "mainnet": {
        "currentHeight": 267600,
        "networkHashrate": 72534231128763455,
        "networkDifficulty": 4855705518
    },
    "blockReward": {
        "total": "20.33653951",
        "pow": "12.20192370",
        "pos": "6.10096185",
        "dev": "2.03365395"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1534901109,
    "liveTickets": 40911,
    "dcrInPoS": 3868422,
    "price": {
        "current": 94.90128157,
        "estimates": {
            "expected": "95.07674353",
            "min": "92.77323956",
            "max": "101.41173723"
        }
    },
    "percentage": {
        "lockedInPos": 45.576
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1534901103,
    "price": {
        "fiat": {
            "USD": "43.393"
        },
        "crypto": {
            "BTC": "0.00640655",
            "ETH": "0.14795163",
            "LTC": "0.73759620",
            "XMR": "0.44025618"
        }
    },
    "misc": {
        "ETHfactor": "2.30938071"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1534901109,
    "usage": {
        "hdd": 4523.88,
        "cpu": 4.88,
        "mem": 383.91
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1534901109,
    "pools": {
        "Coinmine": {
            "hashrate": "8170327464771200",
            "lastBlock": 267591,
            "timeSinceLast": 3851,
            "progress": 148.63
        },
        "Suprnova": {
            "hashrate": "1138987487738800",
            "lastBlock": 267551,
            "timeSinceLast": 17814,
            "progress": 97.62
        },
        "Luxor": {
            "hashrate": "2182408502997463",
            "lastBlock": 267475,
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "UUpool": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Pool.MN": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "F2Pool": {
            "hashrate": "21538557315483028",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Altpool": {
            "hashrate": "5101733953",
            "lastBlock": 255111,
            "timeSinceLast": 3737933,
            "progress": "n\/a"
        },
        "BeePool": {
            "hashrate": "27090000000000000",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Zpool.ca": {
            "hashrate": "6039983875",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        }
    },
    "globalRates": {
        "unknownMiners": "12413939216055136",
        "knownPools": "60120291912708320",
        "networkTotal": "72534231128763456"
    }
}