Skip to content
GET /v1/block

A block (epoch pivot) by epoch number, tag or hash

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/conflux-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/conflux-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/conflux-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/conflux-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/conflux-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": "0x867105636372522ed45a25f8d07a4c92e42728daf0b082bd7b30f00886c0c840",
        "miner": "cfx:aamgvyzht7h1zxdghb9ee9w26wrz8rd3gj837392dp",
        "height": 149585220,
        "source": "Conflux",
        "gas_used": 0,
        "gas_limit": 54000000,
        "timestamp": "2026-06-10T22:58:12.000Z",
        "difficulty": 359067596443,
        "size_bytes": 0,
        "parent_hash": "0xf3d1644e03ec869676d7171491ab726fff747772a3045eb5f2bfe66ad6628b24",
        "pow_quality": "0xba4e8a9bd0",
        "block_number": 362695775,
        "epoch_number": 149585220,
        "transaction_count": 0
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:22.607Z",
        "request_id": "0d2d0863-cf1e-4524-8647-c199f747c869"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}