getSlot
Returns the slot that has reached the given or default commitment level
Last updated
Was this helpful?
Returns the slot that has reached the given or default commitment level
object - optional - Configuration object
u64 - Current slot
// Request
curl https://solana.blockpi.network/v1/rpc/your-rpc-key
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlot",
"params": [
{
"commitment": "finalized"
}
]
}
'
// Result
Last updated
Was this helpful?
Was this helpful?