appendTransactionMessageInstruction
Given an instruction, this method will return a new transaction message with that instruction having been added to the end of the list of existing instructions.
Type Parameters
| Type Parameter | 
|---|
| TTransactionMessageextendsReadonly<{instructions: readonlyInstruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]>[];version:TransactionVersion; }> | 
| TInstructionextendsInstruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]> | 
Parameters
| Parameter | Type | 
|---|---|
| instruction | TInstruction | 
| transactionMessage | TTransactionMessage | 
Returns
AppendTransactionMessageInstructions<TTransactionMessage, [TInstruction]>
See
appendTransactionInstructions if you need to append multiple instructions to a transaction message.