Show / Hide Table of Contents

Class AssociateTokenParams

Transaction Parameters for Token and NFT Association Requests.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
AssociateTokenParams
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 AssociateTokenParams : TransactionParams<TransactionReceipt>
Examples

Associate several tokens with an account in one transaction:

// Associate several tokens in a single transaction. One transaction
// fee, one signature — cheaper than N separate associations.
var receipt = await client.AssociateTokensAsync(new AssociateTokenParams
{
    Account = account,
    Tokens = new[] { token1, token2, token3 }
});
Console.WriteLine($"Associate status: {receipt.Status}");

Properties

| Edit this page View Source

Account

The Holder that will be 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 association 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 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 associate with 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