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": 1556216628,
    "mainnet": {
        "currentHeight": 338821,
        "networkHashrate": 446795297788639162,
        "networkDifficulty": 32993595344
    },
    "blockReward": {
        "total": "18.04764623",
        "pow": "10.82858774",
        "pos": "5.41429387",
        "dev": "1.80476462"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1556216628,
    "liveTickets": 40536,
    "dcrInPoS": 4676422,
    "price": {
        "current": 120.53768555,
        "estimates": {
            "expected": "119.08524506",
            "min": "118.81164976",
            "max": "119.95370601"
        }
    },
    "percentage": {
        "lockedInPos": 51.39
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1556216605,
    "price": {
        "fiat": {
            "USD": "22.541"
        },
        "crypto": {
            "BTC": "0.00447998",
            "ETH": "0.13665409",
            "LTC": "0.30491565",
            "XMR": "0.33566846"
        }
    },
    "misc": {
        "ETHfactor": "3.05032813"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1556216628,
    "usage": {
        "hdd": 5559.76,
        "cpu": 4.58,
        "mem": 1119.73
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1556216628,
    "pools": {
        "Coinmine": {
            "hashrate": "1727567467324940",
            "lastBlock": 338383,
            "timeSinceLast": 120524,
            "progress": 114
        },
        "Suprnova": {
            "hashrate": "127772571586200",
            "lastBlock": 334174,
            "timeSinceLast": 1386225,
            "progress": 148.74
        },
        "Luxor": {
            "hashrate": "12780761864537726",
            "lastBlock": 338785,
            "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": "97236287502902928",
            "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": "334922908382287360",
        "knownPools": "111872389406351792",
        "networkTotal": "446795297788639168"
    }
}