isInstructionForProgram

function isInstructionForProgram<TProgramAddress, TInstruction>(
    instruction,
    programAddress,
): instruction is TInstruction & {
    programAddress: Address<TProgramAddress>;
};

Type Parameters

Type Parameter
TProgramAddress extends string
TInstruction extends Instruction<string, readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]>

Parameters

ParameterType
instructionTInstruction
programAddressAddress<TProgramAddress>

Returns

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

On this page