Preparing search index...
The search index is not available
Solana JavaScript SDK
Solana JavaScript SDK
@solana/rpc
GetBlocksApi
Type Alias GetBlocksApi
GetBlocksApi
:
{
getBlocks
(
startSlot
:
bigint
,
endSlotInclusive
?:
bigint
,
config
?:
Readonly
<
{
commitment
?:
Exclude
<
Commitment
,
"processed"
>
}
>
,
)
:
GetBlocksApiResponse
;
}
Type declaration
getBlocks
:
function
getBlocks
(
startSlot
:
bigint
,
endSlotInclusive
?:
bigint
,
config
?:
Readonly
<
{
commitment
?:
Exclude
<
Commitment
,
"processed"
>
}
>
,
)
:
GetBlocksApiResponse
Returns a list of confirmed blocks between two slots
Parameters
startSlot
:
bigint
Optional
endSlotInclusive
:
bigint
Optional
config
:
Readonly
<
{
commitment
?:
Exclude
<
Commitment
,
"processed"
>
}
>
Returns
GetBlocksApiResponse
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Solana JavaScript SDK
Loading...
Returns a list of confirmed blocks between two slots