Functions
getSignersFromTransactionMessage
getSignersFromTransactionMessage<
TAddress
,TSigner
,TTransactionMessage
>(transaction
): readonlyTSigner
[]
Extracts and deduplicates all TransactionSigners stored inside a given transaction message.
This includes any TransactionSigners stored as the fee payer or in the instructions of the transaction message.
Any extracted signers that share the same Address will be de-duplicated.
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
TAddress extends string | string | Supply a string literal to define an account having a particular address. |
TSigner extends TransactionSigner <TAddress > | TransactionSigner <TAddress > | Optionally provide a narrower type for TransactionSigners. |
TTransactionMessage extends TransactionMessageWithSigners <TAddress , TSigner , readonly AccountMetaWithSigner <TSigner >[]> | TransactionMessageWithSigners <TAddress , TSigner , readonly AccountMetaWithSigner <TSigner >[]> | The inferred type of the transaction message provided. |
Parameters
Parameter | Type |
---|---|
transaction | TTransactionMessage |
Returns
readonly TSigner
[]