New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
English
Returns the slot that has reached the given or default commitment level.
cURL
curl --request POST \ --url 'https://mainnet.helius-rpc.com/?api-key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "1", "method": "getSlot", "params": [ { "commitment": "finalized" } ] } '
{ "jsonrpc": "2.0", "id": "1", "result": 1234 }
Your Helius API key. You can get one for free in the dashboard.
The JSON-RPC protocol version.
2.0
"2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getSlot
"getSlot"
Optional configuration object.
Show child attributes
Successfully retrieved the current slot.
Identifier matching the request.
Current Solana blockchain slot number representing the network's height and progress.
1234
Was this page helpful?