HederaTokenAssociationRequest
Data structure for performing a Hedera token association

Signature

1
{
2
walletId! : string;
3
secretType! : 'HEDERA',
4
type! : 'HEDERA_TOKEN_ASSOCIATION',
5
tokenIds!: string[]
6
}
Copied!

Parameters

Parameter
Required
Type
Description
walletId
True
String
ID of the wallet one wants to associate tokens with.
secretType
True
String
Chain the association will be executed on. Currently only HEDERA is supported
type
True
String
The type of transaction one wants to execute. In this case HEDERA_TOKEN_ASSOCIATION
tokenIds
True
String[]
An array of strings containing the ID's of the tokens one wants to associate

Example

1
{
2
secretType: 'HEDERA',
3
type: 'HEDERA_TOKEN_ASSOCIATION',
4
walletId: 'd1e091d7-0fab-4f46-8afd-ad31f1e735d7',
5
tokenIds: ['0.0.2278508', '0.0.2278508', '0.0.2278508', '0.0.2278508']
6
}
Copied!

Function Types