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": 1544425715,
    "mainnet": {
        "currentHeight": 299431,
        "networkHashrate": 164922918195789564,
        "networkDifficulty": 12081329870
    },
    "blockReward": {
        "total": "19.34951954",
        "pow": "11.60971173",
        "pos": "5.80485586",
        "dev": "1.93495195"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1544425715,
    "liveTickets": 40697,
    "dcrInPoS": 4159659,
    "price": {
        "current": 101.40897029,
        "estimates": {
            "expected": "101.15452611",
            "min": "98.96601948",
            "max": "107.50673266"
        }
    },
    "percentage": {
        "lockedInPos": 45.618
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1544425695,
    "price": {
        "fiat": {
            "USD": "20.339"
        },
        "crypto": {
            "BTC": "0.00530873",
            "ETH": "0.22379830",
            "LTC": "0.80034172",
            "XMR": "0.43010262"
        }
    },
    "misc": {
        "ETHfactor": "4.21566552"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1544425715,
    "usage": {
        "hdd": 5400.88,
        "cpu": 4.58,
        "mem": 767.82
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1544425715,
    "pools": {
        "Coinmine": {
            "hashrate": "2823631458543500",
            "lastBlock": 299391,
            "timeSinceLast": 13618,
            "progress": 73.48
        },
        "Suprnova": {
            "hashrate": "696342423188550",
            "lastBlock": 299130,
            "timeSinceLast": 102115,
            "progress": 139.83
        },
        "Luxor": {
            "hashrate": "3049183811415878",
            "lastBlock": 299370,
            "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": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Altpool": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "BeePool": {
            "hashrate": "22560000000000000",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Zpool.ca": {
            "hashrate": "108103983243",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        }
    },
    "globalRates": {
        "unknownMiners": "135793652398658400",
        "knownPools": "29129265797131172",
        "networkTotal": "164922918195789568"
    }
}