• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/signers
  • addSignersToInstruction

Function addSignersToInstruction

  • addSignersToInstruction<
        TInstruction extends
            IInstruction<
                string,
                readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
            >,
    >(
        signers: TransactionSigner[],
        instruction: TInstruction | IInstructionWithSigners & TInstruction,
    ): IInstructionWithSigners & TInstruction
  • Attaches the provided signers to the account metas of an instruction when applicable.

    Type Parameters

    • TInstruction extends IInstruction<
          string,
          readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
      >

    Parameters

    • signers: TransactionSigner[]
    • instruction: TInstruction | IInstructionWithSigners & TInstruction

    Returns IInstructionWithSigners & TInstruction

    • Defined in packages/signers/src/add-signers.ts:9

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc