Blocks
Get block transactions
Get transactions that occurred in a given block.
GET
/
somnia
/
v1
/
block
/
{blockNumber}
/
transactions
Copy
Ask AI
curl --request GET \
--url https://data-api.cloud.ormi.dev/somnia/v1/block/{blockNumber}/transactions
Copy
Ask AI
{
"cursor": "<string>",
"transactions": [
{
"block_hash": "<string>",
"block_number": 123,
"block_timestamp": "2023-11-07T05:31:56Z",
"contract_address": "<string>",
"cumulative_gas_used": "<string>",
"effective_gas_price": "<string>",
"from_address": "<string>",
"gas": "<string>",
"gas_price": "<string>",
"gas_used": "<string>",
"input": "<string>",
"l1_fee": "<string>",
"l1_fee_scalar": "<string>",
"l1_gas_price": "<string>",
"l1_gas_used": "<string>",
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>",
"nonce": "<string>",
"status": 123,
"to_address": "<string>",
"transaction_hash": "<string>",
"transaction_index": 123,
"transaction_type": 123,
"value": "<string>"
}
]
}
Path Parameters
Block number.
Query Parameters
The cursor returned in previous response (for getting the next page).
Number of records to fetch
Required range:
1 <= x <= 100
Response
200 - application/json
OK
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://data-api.cloud.ormi.dev/somnia/v1/block/{blockNumber}/transactions
Copy
Ask AI
{
"cursor": "<string>",
"transactions": [
{
"block_hash": "<string>",
"block_number": 123,
"block_timestamp": "2023-11-07T05:31:56Z",
"contract_address": "<string>",
"cumulative_gas_used": "<string>",
"effective_gas_price": "<string>",
"from_address": "<string>",
"gas": "<string>",
"gas_price": "<string>",
"gas_used": "<string>",
"input": "<string>",
"l1_fee": "<string>",
"l1_fee_scalar": "<string>",
"l1_gas_price": "<string>",
"l1_gas_used": "<string>",
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>",
"nonce": "<string>",
"status": 123,
"to_address": "<string>",
"transaction_hash": "<string>",
"transaction_index": 123,
"transaction_type": 123,
"value": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.