HederaTokenAssociationRequest

Data structure for performing a Hedera token association.

Signature:

{
    walletId! : string;
    secretType! : 'HEDERA',
    type! : 'HEDERA_TOKEN_ASSOCIATION',
    tokenIds!: string[]
}

Parameters:

ParameterRequiredTypeDescription
walletIdTrueStringID of the wallet one wants to associate tokens with.
secretTypeTrueStringChain the association will be executed on. Currently only HEDERA is supported
typeTrueStringThe type of transaction one wants to execute. In this case HEDERA_TOKEN_ASSOCIATION
tokenIdsTrueString[]An array of strings containing the ID's of the tokens one wants to associate

Example:

{
    secretType: 'HEDERA',
    type: 'HEDERA_TOKEN_ASSOCIATION',
    walletId: 'd1e091d7-0fab-4f46-8afd-ad31f1e735d7',
    tokenIds: ['0.0.2278508', '0.0.2278508', '0.0.2278508', '0.0.2278508']
}

Function Types

๐Ÿ“˜