Metodo RPC getSlot
Restituisce lo slot che ha raggiunto il livello di commitment specificato o predefinito
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getSlot",> "params": [> {> "commitment": "finalized"> }> ]> }> '
params
objectoptional
Oggetto di configurazione contenente i seguenti campi:
result
Response
{"jsonrpc": "2.0","result": 1234,"id": 1}
u64
Slot corrente
Is this page helpful?