Class BalancesSugar
Inheritance
System.Object
BalancesSugar
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public class BalancesSugar : object
Methods
| Improve this Doc View SourceGetXrpBalance(XrplClient, String, Nullable<String>, LedgerIndex)
Get the XRP balance for an account.
Declaration
public static async Task<string> GetXrpBalance(XrplClient client, string address, string? ledgerHash = null, LedgerIndex lederIndex = null)
Parameters
Type | Name | Description |
---|---|---|
XrplClient | client | Client. |
System.String | address | Address of the account to retrieve XRP balance. |
System.Nullable<System.String> | ledgerHash | Retrieve the account balances at the ledger with a given ledger_hash. |
LedgerIndex | lederIndex | Retrieve the account balances at a given ledgerIndex. |
Returns
Type | Description |
---|---|
Task<System.String> |