Class AssociateTokenParams
Transaction Parameters for Token and NFT Association Requests.
Inherited Members
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 SourceAccount
The Holder that will be 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 association 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 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 associate with the account.
Declaration
public IEnumerable<EntityId> Tokens { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<EntityId> |