Slot
getSlot
Returns the slot that has reached the given or default commitment level.
Parameters
configobject optional Configuration object.
commitmentstringCommitment level.
minContextSlotnumberThe minimum slot.
Result
u64Current slot.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlot",
"params": [{ "commitment": "finalized" }]
}'Response
JSON{
"jsonrpc": "2.0",
"result": 1234,
"id": 1
}