getBlockHeight abstract method
Returns the current block height of the node
commitment
For commitment
parameter description see this document
Commitment.processed is not supported as commitment
.
minContextSlot
Set the minimum slot that the request can be evaluated at.
Implementation
Future<int> getBlockHeight({
Commitment? commitment,
num? minContextSlot,
});