Class TokenAllowanceDataExtensions
Extension methods for querying token allowance data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class TokenAllowanceDataExtensions
Methods
| Edit this page View SourceGetAccountTokenAllowancesAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates fungible-token allowances granted by a specific
account from /api/v1/accounts/{id}/allowances/tokens.
Use SpenderFilter to narrow to a specific
allowance recipient, or TokenFilter to narrow to
a specific token. Default order is ascending (spender id,
then token id).
Declaration
public static IAsyncEnumerable<TokenAllowanceData> GetAccountTokenAllowancesAsync(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 token-allowance grants are requested. |
| IMirrorQueryParameter[] | filters | Additional query parameters. The endpoint supports SpenderFilter, TokenFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<TokenAllowanceData> | An async enumerable of token-allowance records granted by the given account. |
Remarks
The server imposes cross-filter constraints on this endpoint:
TokenFilter requires an accompanying
SpenderFilter with compatible operator semantics
(lt(e):spender.id + lt(e):token.id, or equivalent
gt(e)/eq pairings). Violating the rule yields a
server-side 400; the SDK does not enforce client-side.