Kit
Type aliases

IInstructionWithData

IInstructionWithData<TData> = InstructionWithData<TData>

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.

Type Parameters

Type Parameter
TData extends ReadonlyUint8Array

Deprecated

Use InstructionWithData instead. It was only renamed.

Example

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

On this page