getBlockHeight RPC Method
Returns the current block height of the node
params
object optional Configuration object.
commitment
Array of u64 integers logging the amount of cluster stake in lamports that has voted on the block at each depth from 0 to MAX_LOCKOUT_HISTORY.
totalStake
Total active stake, in lamports, of the current epoch.
result
u64 Current block height.
cURL
curl https://api.mainnet.openverse.network/ -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockHeight",
"params": []
}
'
Response
{
"jsonrpc": "2.0",
"result": 91147454,
"id": 1
}