Parameters
- block_idstringREQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)
Returns
- resultobject
The result object which can be one of the following object:
- BLOCK_WITH_TX_HASHESobject
(Optional) The block with transaction hashes object which have the following fields
- statusstring
The block status, which can be one of - 'PRE_CONFIRMED', 'ACCEPTED_ON_L2', 'ACCEPTED_ON_L1'
- block_hashstring
The block hash
- parent_hashstring
The parent block hash
- block_numberinteger
The block number (its height)
- new_rootstring
The new global state root
- timestampinteger
The time in which the block was created, encoded in Unix time
- sequencer_addressstring
The StarkNet identity of the sequencer submitting this block
- l1_gas_priceobject
The price of l1 gas in the block
- price_in_fristring
The price of one unit of the given resource, denominated in fri (10^-18 strk)
- price_in_weistring
The price of one unit of the given resource, denominated in wei
- l2_gas_priceobject
The price of l2 gas in the block
- price_in_fristring
The price of one unit of the given resource, denominated in fri (10^-18 strk)
- price_in_weistring
The price of one unit of the given resource, denominated in wei
- l1_data_gas_priceobject
The price of l1 data gas in the block
- price_in_fristring
The price of one unit of the given resource, denominated in fri (10^-18 strk)
- price_in_weistring
The price of one unit of the given resource, denominated in wei
- l1_da_modestring
It specifies whether the data of this block is published via blob data or calldata. It can be one of - 'BLOB' or 'CALLDATA'. This field will not be present if the status of the block is posted to L1
- starknet_versionstring
The semver of the current Starknet protocol
- transactionsarray
The hashes of the transactions included in this block
- PRE_CONFIRMED_BLOCK_WITH_TX_HASHESobject
(Optional) The pre-confirmed block with transaction hashes object which have the following fields. Note that this object will be deprecated upon decentralization
- transactionsarray
The hashes of the transactions included in this block
- block_numberinteger
The block number of the block that the proposer is currently building. Note that this is a local view of the node, whose accuracy depends on its polling interval length
- timestampinteger
The time in which the block was created, encoded in Unix time
- sequencer_addressstring
The StarkNet identity of the sequencer submitting this block
- l1_gas_priceobject
The price of l1 gas in the block
- price_in_fristring
The price of one unit of the given resource, denominated in fri (10^-18 strk)
- price_in_weistring
The price of one unit of the given resource, denominated in wei
- l2_gas_priceobject
The price of l2 gas in the block
- price_in_fristring
The price of one unit of the given resource, denominated in fri (10^-18 strk)
- price_in_weistring
The price of one unit of the given resource, denominated in wei
- l1_data_gas_priceobject
The price of l1 data gas in the block
- price_in_fristring
The price of one unit of the given resource, denominated in fri (10^-18 strk)
- price_in_weistring
The price of one unit of the given resource, denominated in wei
- l1_da_modestring
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
The semver of the current Starknet protocol