dcr

Decred (DCR)

Method: POST livetickets

dropdown
POST

livetickets

Returns live ticket hashes from the ticket database.

Parameters

-

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "livetickets",
"params": [],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "tickets": [
            "8cdcc4068e9e5b1c11fed547e4c8cbc25fb0d104e6966504403bf606f85d0100",
            "2b8088b3853f9a38afc74a7a76099a2a14c5ec92f6c06b1ba4d6451c657c0700",
            "e15a59c5232c79e37faa856e936bfccd94a1f1b4e865ef5761014c7cb3340800",
            "7f5fe83d59f75df0a5725e93eb61c75edc30ef26be96b57a19fedc522a0b0900",
            "c766feb291bab61e3f4a653b3acb457c4dd0248701b09660a62d5f58530e0b00",
            "65eb22afeab4d9c109069dda1b27088e056502fa080ea23ff3d7d217e7ea0c00",
            "483e833f42ea1d65eb31f6e471b7e18096fe483807f4bfa19d8342ad95940d00"
        ]
    }
}