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": 1550612015,
    "mainnet": {
        "currentHeight": 320117,
        "networkHashrate": 288936415222880801,
        "networkDifficulty": 22635415288
    },
    "blockReward": {
        "total": "18.59450796",
        "pow": "11.15670477",
        "pos": "5.57835239",
        "dev": "1.85945080"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1550612015,
    "liveTickets": 39994,
    "dcrInPoS": 4362862,
    "price": {
        "current": 98.34857011,
        "estimates": {
            "expected": "104.07434046",
            "min": "93.00364937",
            "max": "106.09259856"
        }
    },
    "percentage": {
        "lockedInPos": 49.677
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1550591827,
    "price": {
        "fiat": {
            "USD": "17.600"
        },
        "crypto": {
            "BTC": "0.00451211",
            "ETH": "0.12258232",
            "LTC": "0.36035337",
            "XMR": "0.33179545"
        }
    },
    "misc": {
        "ETHfactor": "2.71674050"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1550612015,
    "usage": {
        "hdd": 5873.07,
        "cpu": 3.48,
        "mem": 735.83
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1550612015,
    "pools": {
        "Coinmine": {
            "hashrate": "3589091035324952",
            "lastBlock": 320115,
            "timeSinceLast": 343,
            "progress": 1.11
        },
        "Suprnova": {
            "hashrate": "158219030948480",
            "lastBlock": 319548,
            "timeSinceLast": 172937,
            "progress": 34.79
        },
        "Luxor": {
            "hashrate": "13126101007760216",
            "lastBlock": 320059,
            "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": "58830946281584480",
            "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": "213232057867262720",
        "knownPools": "75704357355618128",
        "networkTotal": "288936415222880832"
    }
}