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
}Methods
getBlocksWithLimit
Returns a list of confirmed blocks starting at the given slot for a given limit.
POST
/
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
}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
]
}'
Body
application/json
Available options:
getBlocksWithLimit Available options:
2.0 Start slot and limit. See Solana RPC docs for exact shape.
Required array length:
1 - 2 elementsWas this page helpful?

