Metodo RPC getBlocks
Restituisce un elenco di blocchi confermati tra due slot
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlocks",> "params": [> 5,> 10,> {> "commitment": "finalized"> }> ]> }> '
params
u64required
Slot iniziale
u64optional
Slot finale (non deve essere superiore a 500.000 blocchi rispetto allo
start_slot
)
objectoptional
Oggetto di configurazione
result
Response
{"jsonrpc": "2.0","result": [5, 6, 7, 8, 9, 10],"id": 1}
array
Un array di interi u64 che elenca i blocchi confermati tra start_slot
e o
end_slot
- se fornito, o l'ultimo slot confermato, incluso. L'intervallo
massimo consentito è di 500.000 slot.
Is this page helpful?