getBlocksWithLimit RPC-Methode
Gibt eine Liste bestätigter Blöcke zurück, beginnend beim angegebenen Slot
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlocksWithLimit",> "params": [> 5,> 3> ],> {> "commitment": "finalized"> }> }> '
params
u64required
Start-Slot
u64optional
Limit (darf nicht mehr als 500.000 Blöcke höher sein als der start_slot
)
objectoptional
Konfigurationsobjekt
result
Response
{"jsonrpc": "2.0","result": [5, 6, 7],"id": 1}
array
Ein Array von u64-Ganzzahlen, das bestätigte Blöcke auflistet, beginnend bei
start_slot
für bis zu limit
Blöcke, inklusive.
Is this page helpful?