Class NftAllowanceDataExtensions
Extension methods for querying NFT allowance data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class NftAllowanceDataExtensions
Methods
| Edit this page View SourceGetAccountNftAllowancesAsOwnerAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates NFT allowances granted by this account —
i.e., allowances where the given account is the owner and
other accounts are authorized to transfer NFTs on its
behalf. Maps to the endpoint's owner=true mode
(the default server-side, but named explicitly here so the
call site is self-describing).
Declaration
public static IAsyncEnumerable<NftAllowanceData> GetAccountNftAllowancesAsOwnerAsync(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 owner account whose outgoing NFT allowances are requested. |
| IMirrorQueryParameter[] | filters | Additional query filters. The endpoint supports AccountFilter (for a specific spender), TokenFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<NftAllowanceData> | An async enumerable of NFT-allowance records. |
See Also
| Edit this page View SourceGetAccountNftAllowancesAsSpenderAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates NFT allowances granted to this account —
i.e., allowances where the given account is the spender
and various owners have authorized it to transfer NFTs on
their behalf. Maps to the endpoint's owner=false
mode.
Declaration
public static IAsyncEnumerable<NftAllowanceData> GetAccountNftAllowancesAsSpenderAsync(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 spender account whose incoming NFT allowances are requested. |
| IMirrorQueryParameter[] | filters | Additional query filters. The endpoint supports AccountFilter (for a specific owner), TokenFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<NftAllowanceData> | An async enumerable of NFT-allowance records. |