Fetch the current block height of the node.
HTTP transport instance
Desired commitment level (default: "confirmed")
"confirmed"
Additional call options
The current block height
const height = await getBlockHeight(transport);console.log(`Current block height: ${height}`); Copy
const height = await getBlockHeight(transport);console.log(`Current block height: ${height}`);
1.0.0
Fetch the current block height of the node.