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": 1553097085,
    "mainnet": {
        "currentHeight": 328391,
        "networkHashrate": 341274235129458634,
        "networkDifficulty": 22901716322
    },
    "blockReward": {
        "total": "18.41040392",
        "pow": "11.04624235",
        "pos": "5.52312118",
        "dev": "1.84104039"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1553097085,
    "liveTickets": 41188,
    "dcrInPoS": 4568786,
    "price": {
        "current": 113.10148926,
        "estimates": {
            "expected": "115.50307986",
            "min": "112.79658334",
            "max": "120.59881853"
        }
    },
    "percentage": {
        "lockedInPos": 51.197
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1553097082,
    "price": {
        "fiat": {
            "USD": "18.470"
        },
        "crypto": {
            "BTC": "0.00470950",
            "ETH": "0.13325625",
            "LTC": "0.30549269",
            "XMR": "0.33131221"
        }
    },
    "misc": {
        "ETHfactor": "2.82952012"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1553097085,
    "usage": {
        "hdd": 5349.26,
        "cpu": 4.11,
        "mem": 1023.76
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1553097085,
    "pools": {
        "Coinmine": {
            "hashrate": "2379473366093018",
            "lastBlock": 328142,
            "timeSinceLast": 74162,
            "progress": 166.6
        },
        "Suprnova": {
            "hashrate": "171414182233700",
            "lastBlock": 327313,
            "timeSinceLast": 315326,
            "progress": 58.13
        },
        "Luxor": {
            "hashrate": "12882732110472242",
            "lastBlock": 328382,
            "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": "51099126388701992",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Altpool": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "BeePool": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Zpool.ca": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        }
    },
    "globalRates": {
        "unknownMiners": "274741489081957664",
        "knownPools": "66532746047500952",
        "networkTotal": "341274235129458624"
    }
}