Skip to main content

ResQ.Blockchain.INeoClient

INeoClient.GetBlockHeightAsync(CancellationToken) Method

Gets the current block height of the blockchain.

Parameters

cancellationToken System.Threading.CancellationToken Cancellation token for the operation.

Returns

System.Threading.Tasks.Task<System.UInt64>
The current block height as an unsigned 64-bit integer.

Exceptions

System.OperationCanceledException
Thrown when the operation is cancelled.

Example

Remarks

The block height represents the number of blocks in the blockchain and increases approximately every 15 seconds on Neo N3. This can be used to estimate confirmation times and determine if transactions have been finalized.