Class AccountInfoExtensions
Extension methods for querying account information.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class AccountInfoExtensions
Methods
| Edit this page View SourceGetAccountInfoAsync(ConsensusClient, EntityId, CancellationToken, Action<IConsensusContext>?)
Retrieves detailed information regarding a Hedera Network Address.
Declaration
public static Task<AccountInfo> GetAccountInfoAsync(this ConsensusClient client, EntityId address, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client to query. |
| EntityId | address | The Hedera Network Address to retrieve detailed information of. |
| CancellationToken | cancellationToken | Optional cancellation token. |
| Action<IConsensusContext> | configure | Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network. |
Returns
| Type | Description |
|---|---|
| Task<AccountInfo> | A detailed description of the account. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If required arguments are missing. |
| InvalidOperationException | If required context configuration is missing. |
| PrecheckException | If the gateway node rejected the request upon submission. |