Class TokenDataExtensions
Extension methods for querying token data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class TokenDataExtensions
Methods
| Edit this page View SourceGetTokenAsync(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. |