API Documents

API Server endpoint

https://hashpool.com/api/

 


Pool coins

Request:  GET /coins

Response:

{
    "code": 0,
    "data": [
        {
            "coin": "BSHA3",
            "fee": 0,
            "minPay": 0.1,
            "poolHashrate": 11.6,
            "poolHashrateUnit": "GH/s",
            "netHashrate": 1,
            "netHashrateUnit": "H/s"
        },
        {
            "coin": "CKB",
            "fee": 0,
            "minPay": 0.1,
            "poolHashrate": 0,
            "poolHashrateUnit": "H/s",
            "netHashrate": 1,
            "netHashrateUnit": "H/s"
        }
    ]
}

coin:  Coin symbol

fee:  Pool mining fee percent

minPay: Minimum payout

poolHashrate:  Hashrate of hashpool

poolHashrateUnit:  The unit of pool hashrate

netHashrate:  Total hashrate of network

netHashrateUnit: The unit of network hashrate

 


Coin blocks

Request:  GET /blocks/CKB?offset=0&limit=50

Response:

{
    "code": 0,
    "data": {
        "data": [
            {
                "blockHash": "96968a5c88970b26eabb...07d6b91fdf86768003051c478fd77331",
                "blockHeight": 2829626,
                "reward": 4.803386,
                "dateTime": 1567907462000
            },
            {
                "blockHash": "c5dc64e03e0e32bce80dc6f...ae223a6653afe19e1756c52e0af6d",
                "blockHeight": 2829616,
                "reward": 4.803421,
                "dateTime": 1567906935000
            }
        ],
        "pageNum": 1,
        "pageSize": 50,
        "pages": 6,
        "total": 251
    }
}


Coin workers

Request:  GET /coin/workers/CKB

Response:

{
    "code": 0,
    "data": {
        "workerCount": 8102
    }
}

Was this article helpful?

Related Articles