curl --request POST \ --url https://devnet-as.magicblock.app/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "getBlocksWithLimit", "params": [ 5, 3 ] }'
{ "jsonrpc": "2.0", "result": [ 5, 6, 7 ], "id": 1 }
Returns a list of confirmed blocks starting at the given slot for a given limit.
getBlocksWithLimit
2.0
Start slot and limit. See Solana RPC docs for exact shape.
1 - 2
Successful response
Array of confirmed slot numbers.
Was this page helpful?