getBlockHeight RPC Method
Returns the current block height of the node
params
objectoptional
Configuration object
result
u64
Current block height.
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockHeight",> "params": []> }> '
Response
{"jsonrpc": "2.0","result": 1233,"id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockHeight",> "params": []> }> '
params
objectoptional
Configuration object
result
Response
{"jsonrpc": "2.0","result": 1233,"id": 1}
u64
Current block height.
Is this page helpful?