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": 1540034320,
    "mainnet": {
        "currentHeight": 284791,
        "networkHashrate": 130645511673058762,
        "networkDifficulty": 9856042868
    },
    "blockReward": {
        "total": "19.73844489",
        "pow": "11.84306693",
        "pos": "5.92153347",
        "dev": "1.97384449"
    }
}
URL: https://dcred.eu/api/api?q=tickets
RESPONSE:
{
    "success": true,
    "lastUpdate": 1540034320,
    "liveTickets": 41043,
    "dcrInPoS": 4019885,
    "price": {
        "current": 101.549198,
        "estimates": {
            "expected": "102.73111756",
            "min": "101.55678226",
            "max": "105.43227931"
        }
    },
    "percentage": {
        "lockedInPos": 45.512
    }
}
URL: https://dcred.eu/api/api?q=price
RESPONSE:
{
    "success": true,
    "lastUpdate": 1540034319,
    "price": {
        "fiat": {
            "USD": "38.533"
        },
        "crypto": {
            "BTC": "0.00592917",
            "ETH": "0.18801776",
            "LTC": "0.72447891",
            "XMR": "0.37063177"
        }
    },
    "misc": {
        "ETHfactor": "3.17106374"
    }
}
URL: https://dcred.eu/api/api?q=nodeSysLoad
RESPONSE:
{
    "success": true,
    "lastUpdate": 1540034320,
    "usage": {
        "hdd": 4852.97,
        "cpu": 4.1,
        "mem": 575.86
    }
}
URL: https://dcred.eu/api/api?q=powDistribution
RESPONSE:
{
    "success": true,
    "lastUpdate": 1540034320,
    "pools": {
        "Coinmine": {
            "hashrate": "5050714849541000",
            "lastBlock": 284790,
            "timeSinceLast": 722,
            "progress": 7.97
        },
        "Suprnova": {
            "hashrate": "1119360784285900",
            "lastBlock": 284738,
            "timeSinceLast": 18382,
            "progress": 52.04
        },
        "Luxor": {
            "hashrate": "5631048698908426",
            "lastBlock": 284786,
            "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": "48178397373646424",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Altpool": {
            "hashrate": "0",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "BeePool": {
            "hashrate": "41260000000000000",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        },
        "Zpool.ca": {
            "hashrate": "1759218604",
            "lastBlock": "n\/a",
            "timeSinceLast": "n\/a",
            "progress": "n\/a"
        }
    },
    "globalRates": {
        "unknownMiners": "29405988207458400",
        "knownPools": "101239523465600368",
        "networkTotal": "130645511673058768"
    }
}