getBlockHeight RPC MethodCopyAsk AIReturns the current block height of the node Parameters#objectoptionalConfiguration object containing the following fields:commitmentstringoptionalThe commitment describes how finalized a block is at that point in time.minContextSlotnumberoptionalThe minimum slot that the request can be evaluated at.Result# <u64> - Current block height Code sample#curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d ' { "jsonrpc":"2.0","id":1, "method":"getBlockHeight" } ' Result:Response#{ "jsonrpc": "2.0", "result": 1233, "id": 1 } Try ItEndpointDevnetTestnetCustom{ "jsonrpc": "2.0", "id": 1, "method": "getBlockHeight" }RunPreviousgetBlockCommitmentNextgetBlockProduction