Functions
addSignersToTransactionMessage
addSignersToTransactionMessage<
TTransactionMessage
>(signers
,transactionMessage
):TransactionMessageWithSigners
&TTransactionMessage
Attaches the provided TransactionSigners to the account metas of all instructions inside a transaction message and/or the transaction message fee payer, when applicable.
For an account meta to match a provided signer it:
- Must have a signer role (AccountRole.READONLY_SIGNER or AccountRole.WRITABLE_SIGNER).
- Must have the same address as the provided signer.
- Must not have an attached signer already.
Type Parameters
Type Parameter | Description |
---|---|
TTransactionMessage extends Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> | The inferred type of the transaction message provided. |
Parameters
Parameter | Type |
---|---|
signers | TransactionSigner [] |
transactionMessage | TTransactionMessage | TransactionMessageWithSigners & TTransactionMessage |
Returns
TransactionMessageWithSigners
& TTransactionMessage