Show / Hide Table of Contents

Class TokenDataExtensions

Extension methods for querying token data from the mirror node.

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

Methods

| Edit this page View Source

GetTokenAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])

Retrieves the full token information for a specific token from /api/v1/tokens/{id}, including keys, custom fees, and metadata. Use TimestampFilter to retrieve the token's state at a historical consensus instant.

Declaration
public static Task<TokenData?> GetTokenAsync(this MirrorRestClient client, EntityId token, params IMirrorQueryParameter[] filters)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

EntityId token

The ID of the token to retrieve.

IMirrorQueryParameter[] filters

Additional query parameters. The endpoint supports TimestampFilter.

Returns
Type Description
Task<TokenData>

The token information, or null if the token id is unknown to the mirror node.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph