Show / Hide Table of Contents

Class NftAllowanceDataExtensions

Extension methods for querying NFT allowance data from the mirror node.

Inheritance
object
NftAllowanceDataExtensions
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 NftAllowanceDataExtensions

Methods

| Edit this page View Source

GetAccountNftAllowancesAsOwnerAsync(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
GetAccountNftAllowancesAsSpenderAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
| Edit this page View Source

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

See Also
GetAccountNftAllowancesAsOwnerAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph