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": 1547650465,
    "mainnet": {
        "currentHeight": 310199,
        "networkHashrate": 212890185928374418,
        "networkDifficulty": 14301341610
    },
    "blockReward": {
        "total": "18.96825757",
        "pow": "11.38095454",
        "pos": "5.69047727",
        "dev": "1.89682576"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1547650465,
    "liveTickets": 40888,
    "dcrInPoS": 4285630,
    "price": {
        "current": 106.39717461,
        "estimates": {
            "expected": "107.40021674",
            "min": "103.43634199",
            "max": "115.70921315"
        }
    },
    "percentage": {
        "lockedInPos": 49.775
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1547650440,
    "price": {
        "fiat": {
            "USD": "16.794"
        },
        "crypto": {
            "BTC": "0.00460217",
            "ETH": "0.13617584",
            "LTC": "0.52700579",
            "XMR": "0.36837649"
        }
    },
    "misc": {
        "ETHfactor": "2.95894850"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1547650465,
    "usage": {
        "hdd": 5501.15,
        "cpu": 4.74,
        "mem": 639.85
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1547650465,
    "pools": {
        "Coinmine": {
            "hashrate": "2385131424407100",
            "lastBlock": 309928,
            "timeSinceLast": 85641,
            "progress": 347.13
        },
        "Suprnova": {
            "hashrate": "349218972883560",
            "lastBlock": 309063,
            "timeSinceLast": 336429,
            "progress": 211.7
        },
        "Luxor": {
            "hashrate": "8612807712460515",
            "lastBlock": 310147,
            "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": "49071861442453760",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Altpool": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "BeePool": {
            "hashrate": "5030000000000000",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Zpool.ca": {
            "hashrate": "122119091458",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        }
    },
    "globalRates": {
        "unknownMiners": "147441044257078048",
        "knownPools": "65449141671296392",
        "networkTotal": "212890185928374432"
    }
}