Show / Hide Table of Contents

Class AccountDataExtensions

Extension methods for querying account data from the mirror node.

Inheritance
object
AccountDataExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class AccountDataExtensions

Methods

| Edit this page View Source

GetAccountAsync(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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph