• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/instructions
  • isInstructionForProgram

Function isInstructionForProgram

  • isInstructionForProgram<
        TProgramAddress extends string,
        TInstruction extends
            IInstruction<
                string,
                readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
            >,
    >(
        instruction: TInstruction,
        programAddress: Address<TProgramAddress>,
    ): 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 instruction is TInstruction & { programAddress: Address<TProgramAddress> }

    • Defined in packages/instructions/src/instruction.ts:26

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc