Functions
getSignersFromInstruction
getSignersFromInstruction<
TSigner
>(instruction
): readonlyTSigner
[]
Extracts and deduplicates all TransactionSigners stored inside the account metas of an instruction.
Any extracted signers that share the same Address will be de-duplicated.
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
TSigner extends TransactionSigner | TransactionSigner | Optionally provide a narrower type for TransactionSigners. |
Parameters
Parameter | Type |
---|---|
instruction | InstructionWithSigners <TSigner > |
Returns
readonly TSigner
[]