/v1/block
A block by height or hash
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/decred-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/decred-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/decred-api/v1/block");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/decred-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"hash": "d439d0349f228398c2c533c705b96c7291a1db3b92053c36acbf1977d377db42",
"time": "2026-06-08T15:12:23.000Z",
"height": 1087000,
"source": "Decred (dcrdata)",
"tx_count": 0,
"size_bytes": 8076,
"pow_difficulty": 1563701.5464,
"ticket_pool_size": 40510,
"stake_difficulty_dcr": 306.96731843,
"ticket_pool_value_dcr": 11111941.3326
},
"meta": {
"timestamp": "2026-06-10T13:59:12.714Z",
"request_id": "a509a43f-dbaa-498b-a1b0-c80c8fd219ab"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}