Kit
Type aliases

IInstructionWithAccounts

IInstructionWithAccounts<TAccounts> = InstructionWithAccounts<TAccounts>

An instruction that loads certain accounts.

Type Parameters

Type Parameter
TAccounts extends readonly (/api/type-aliases/AccountLookupMeta | AccountMeta)[]

Deprecated

Use InstructionWithAccounts instead. It was only renamed.

Example

type InstructionWithTwoAccounts = IInstructionWithAccounts<
    [
        WritableAccount, // First account
        RentSysvar, // Second account
    ]
>;

On this page