Class GetLedgerSugar
Inheritance
object
GetLedgerSugar
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public static class GetLedgerSugar
Methods
| Edit this page View SourceGetLedgerIndex(IXrplClient, CancellationToken)
Returns the index of the most recently validated ledger.
Declaration
public static Task<uint> GetLedgerIndex(this IXrplClient client, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IXrplClient | client | The Client used to connect to the ledger. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<uint> |