Class AccountDataExtensions
Extension methods for querying account data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class AccountDataExtensions
Methods
| Edit this page View SourceGetAccountAsync(MirrorRestClient, EntityId, params IMirrorQueryFilter[])
Retrieves information about an account.
Declaration
public static Task<AccountData?> GetAccountAsync(this MirrorRestClient client, EntityId account, params IMirrorQueryFilter[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EntityId | account | The id of the account to retrieve. |
| IMirrorQueryFilter[] | filters | Optional list of filters to apply to the query. |
Returns
| Type | Description |
|---|---|
| Task<AccountData> | An account information object, or null if not found. |
GetAccountsFromEndorsementAsync(MirrorRestClient, Endorsement)
Returns a list of accounts matching the given public key endorsement value.
Declaration
public static IAsyncEnumerable<AccountData> GetAccountsFromEndorsementAsync(this MirrorRestClient client, Endorsement endorsement)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| Endorsement | endorsement | The endorsement to match against. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<AccountData> | Array of account information objects with public keys matching the endorsement, or empty if no matches are found. |