curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlocks",
"params": [
166974442
]
}
'{
"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": "getBlocks",
"params": [
166974442
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
123
]
}getBlocks methodgetBlocks method returns a list of confirmed blocks within a specified slot range.
This method provides a list of block heights that have been confirmed by the network. It is useful for retrieving a range of blocks for analysis or display.
startSlot — the start slot of the range.endSlot — (optional) the end slot of the range. If not provided, the method will return all confirmed blocks from the startSlot to the latest block.value — an array of confirmed block heights within the specified range.getBlocks is to retrieve a range 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.Was this page helpful?