• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/web3.js
  • assertIsInstructionWithAccounts

Function assertIsInstructionWithAccounts

  • assertIsInstructionWithAccounts<
        TAccounts extends
            readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[] = readonly (
            IAccountLookupMeta<string, string>
            | IAccountMeta<string>
        )[],
        TInstruction extends
            IInstruction<
                string,
                readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
            > = IInstruction<
            string,
            readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
        >,
    >(
        instruction: TInstruction,
    ): asserts instruction is IInstructionWithAccounts<TAccounts> & TInstruction
  • Type Parameters

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

    Parameters

    • instruction: TInstruction

    Returns asserts instruction is IInstructionWithAccounts<TAccounts> & TInstruction

    • Defined in packages/instructions/dist/types/instruction.d.ts:19

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc