Functions
isInstructionWithAccounts
isInstructionWithAccounts<
TAccounts
,TInstruction
>(instruction
):instruction is InstructionWithAccounts<TAccounts> & TInstruction
Type Parameters
Type Parameter | Default type |
---|---|
TAccounts extends readonly (/api/functions/AccountLookupMeta <string , string > | AccountMeta <string >)[] | readonly (/api/functions/AccountLookupMeta <string , string > | AccountMeta <string >)[] |
TInstruction extends Instruction <string , readonly (/api/functions/AccountLookupMeta <string , string > | AccountMeta <string >)[]> | Instruction <string , readonly (/api/functions/AccountLookupMeta <string , string > | AccountMeta <string >)[]> |
Parameters
Parameter | Type |
---|---|
instruction | TInstruction |
Returns
instruction is InstructionWithAccounts<TAccounts> & TInstruction