Class DissociateTokenParams
Transaction Parameters for Token and NFT Dissociation Requests.
Inherited Members
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 SourceAccount
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 |
CancellationToken
Optional cancellation token to interrupt the token dissociation submission process.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
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.
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> |