starknet_getBlockWithReceipts

Returns detailed block information, including full transactions and receipts, corresponding to the provided block ID.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
block_idobject or enumRequired

The hash of the requested block, the block number (height) of the requested block, or a block tag (latest or pending)

Response

The result object which can be one of the following object
statusstring or null

The block status, which can be one of - ‘PENDING’, ‘ACCEPTED_ON_L2’, ‘ACCEPTED_ON_L1’, ‘REJECTED’

block_hashstring or null
The block hash
parent_hashstring or null
The parent block hash
block_numberstring or null

The block number (its height)

new_rootstring or null
The new global state root
timestampinteger or null
The time in which the block was created, encoded in Unix time
sequencer_addressstring or null
The StarkNet identity of the sequencer submitting this block
l1_gas_priceobject or null
l1_data_gas_priceobject or null
l1_da_modestring or null

It specifies whether the data of this block is published via blob data or calldata. It can be one of - ‘BLOB’ or ‘CALLDATA’

starknet_versionstring or null
The semver of the current Starknet protocol
transactionsobject or null