Class CryptoAllowanceDataExtensions
Extension methods for querying crypto allowance data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class CryptoAllowanceDataExtensions
Methods
| Edit this page View SourceGetAccountCryptoAllowancesAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates HBAR (crypto) allowances granted by a specific
account from /api/v1/accounts/{id}/allowances/crypto.
Use SpenderFilter to narrow to a specific
allowance recipient. Newest-first by default; pass
Ascending to reverse.
Declaration
public static IAsyncEnumerable<CryptoAllowanceData> GetAccountCryptoAllowancesAsync(this MirrorRestClient client, EntityId account, params IMirrorQueryParameter[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EntityId | account | The account whose crypto-allowance grants are requested. |
| IMirrorQueryParameter[] | filters | Additional query parameters. The endpoint supports SpenderFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<CryptoAllowanceData> | An async enumerable of crypto-allowance records granted by the given account. |