Kit
Interfaces

InstructionWithData

An instruction whose data conforms to a certain type.

This is most useful when you have a branded Uint8Array that represents a particular instruction's data.

Example

type AdvanceNonceAccountInstruction<
    TNonceAccountAddress extends string = string,
    TNonceAuthorityAddress extends string = string,
> = Instruction<'11111111111111111111111111111111'> &
    InstructionWithAccounts<
        [
            WritableAccount<TNonceAccountAddress>,
            ReadonlyAccount<'SysvarRecentB1ockHashes11111111111111111111'>,
            ReadonlySignerAccount<TNonceAuthorityAddress>,
        ]
    > &
    InstructionWithData<AdvanceNonceAccountInstructionData>;

Extends

Type Parameters

Type Parameter
TData extends ReadonlyUint8Array

Properties

PropertyModifierTypeOverridesInherited from
accounts?readonlyreadonly (/api/interfaces/AccountLookupMeta<string, string> | AccountMeta<string>)[]-Instruction.accounts
datareadonlyTDataInstruction.data-
programAddressreadonlyAddress<string>-Instruction.programAddress

On this page