Function NetworkClient.getBlockHeight

ulong getBlockHeight();

Returns

the height of the node's ledger, or ulong.max if the request failed

Throws

Exception if the request failed.