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

Function assertIsInstructionForProgram

  • assertIsInstructionForProgram<
        TProgramAddress extends string,
        TInstruction extends
            IInstruction<
                string,
                readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
            >,
    >(
        instruction: TInstruction,
        programAddress: Address<TProgramAddress>,
    ): asserts instruction is TInstruction & {
        programAddress: Address<TProgramAddress>;
    }
  • Type Parameters

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

    Parameters

    • instruction: TInstruction
    • programAddress: Address<TProgramAddress>

    Returns asserts instruction is TInstruction & {
        programAddress: Address<TProgramAddress>;
    }

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

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc