GET
/
v1
/
block
/
detail
curl --request GET \
  --url https://api.chainbase.online/v1/block/detail \
  --header 'x-api-key: <x-api-key>'
{
  "code": 0,
  "message": "ok",
  "data": {
    "number": 123,
    "hash": "<string>",
    "parent_hash": "<string>",
    "timestamp": "<string>",
    "difficulty": "<string>",
    "extra_data": "<string>",
    "gas_limit": 123,
    "gas_used": 123,
    "base_fee_per_gas": 123,
    "miner": "<string>",
    "mix_hash": "<string>",
    "nonce": "<string>",
    "receipts_root": "<string>",
    "sha3_uncles": "<string>",
    "size": 123,
    "state_root": "<string>",
    "transactions_root": "<string>",
    "transactions_count": 123,
    "uncles_count": 123,
    "withdrawals_count": 123
  }
}

Headers

x-api-key
string
required

Query Parameters

chain_id
integer
required

chain network id, see list of details

number
string
required

Block number

Response

200
application/json
Successful Response
data
object
required
code
integer
default:
0
message
string
default:
ok