curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlocksWithLimit",
"params": [
166974442,
100
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": [
123
]
}
curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlocksWithLimit",
"params": [
166974442,
100
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": [
123
]
}
getBlocksWithLimit
methodgetBlocksWithLimit
method returns a list of confirmed blocks starting from a specified slot for a maximum limit.
This method provides a list of block heights that have been confirmed by the network. It is useful for retrieving a specific number of blocks for analysis or display.
startSlot
— the start slot of the range.limit
— the maximum number of blocks to return.value
— an array of confirmed block heights starting from the startSlot
up to the specified limit
.getBlocksWithLimit
is to retrieve a specific number of confirmed blocks for analysis or display. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.Blocks details
The response is of type object
.
Was this page helpful?