getBlocksWithLimit
All the specifications for getBlocksWithLimit RPC Method on Solana
Returns a list of confirmed blocks starting at the given slot
Parameters required for this RPC call
The starting slot of the blocks to be returned. This is a u64 number.
limit: The amount of slots to be fetched. Should not be more than 500,000 blocks higher than the start slot.
configuration : This contains the following parameters, all are optional fields.
commitment: The commitment describes how finalized a block is at that point in time. Only confirmed and finalized are supported, defaults to finalized.
curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockCommitment",
"params": [
5
]
}
'
Last updated
Was this helpful?