Blocks
Get one block
Get the details of an individual block.
GET
/
somnia
/
v1
/
block
/
{blockHeight}
curl --request GET \
--url https://data-api.cloud.ormi.dev/somnia/v1/block/{blockHeight}
{
"base_fee_per_gas": "<string>",
"difficulty": "<string>",
"extra_data": "<string>",
"gas_limit": "<string>",
"gas_used": "<string>",
"hash": "<string>",
"logs_bloom": "<string>",
"miner": "<string>",
"nonce": "<string>",
"number": 123,
"parent_hash": "<string>",
"receipt_root": "<string>",
"sha3_uncles": "<string>",
"size": 123,
"state_root": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"total_difficulty": "<string>",
"transaction_count": 123,
"transactions_root": "<string>",
"withdrawals_root": "<string>"
}
Path Parameters
Block height or latest
to get latest block.
Response
200 - application/json
OK
The response is of type object
.
curl --request GET \
--url https://data-api.cloud.ormi.dev/somnia/v1/block/{blockHeight}
{
"base_fee_per_gas": "<string>",
"difficulty": "<string>",
"extra_data": "<string>",
"gas_limit": "<string>",
"gas_used": "<string>",
"hash": "<string>",
"logs_bloom": "<string>",
"miner": "<string>",
"nonce": "<string>",
"number": 123,
"parent_hash": "<string>",
"receipt_root": "<string>",
"sha3_uncles": "<string>",
"size": 123,
"state_root": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"total_difficulty": "<string>",
"transaction_count": 123,
"transactions_root": "<string>",
"withdrawals_root": "<string>"
}