Show / Hide Table of Contents

Class DissociateTokenParams

Transaction Parameters for Token and NFT Dissociation Requests.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
DissociateTokenParams
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class DissociateTokenParams : TransactionParams<TransactionReceipt>
Examples

Remove the token-balance storage slot from an account. Account must hold zero balance of the token first:

// Remove an account's token-balance storage slot. The account must
// hold zero balance of the token before dissociating. Argument order
// is (token, account) — opposite of AssociateTokenAsync.
var receipt = await client.DissociateTokenAsync(token, account);
Console.WriteLine($"Dissociate status: {receipt.Status}");

Properties

| Edit this page View Source

Account

The Holder that will be un-associated with the Token or NFT class(es)

Declaration
public EntityId Account { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

CancellationToken

Optional cancellation token to interrupt the token dissociation submission process.

Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
Type Description
CancellationToken?
| Edit this page View Source

Signatory

Additional private key, keys or signing callback method required to authorize the un-associations. Typically matches the Endorsement assigned to associated account if it is not already the payer for the transaction.

Declaration
public Signatory? Signatory { get; set; }
Property Value
Type Description
Signatory
Remarks

Keys/callbacks added here will be combined with those already identified in the client object's context when signing this transaction to change the state of this account.

| Edit this page View Source

Tokens

List of Token or NFT class IDs to dissociate from the account.

Declaration
public IEnumerable<EntityId> Tokens { get; set; }
Property Value
Type Description
IEnumerable<EntityId>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph