Skip to content
docs

SerializedInstructionRule

Defined in: wallet-solana/src/serialized.ts:130

One instruction shape a provider transaction may carry (see SerializedTxGuard.instructions): the program, the first bytes of its data (an Anchor discriminator, an SPL tag), and the accounts it must pass at given positions.

optional accounts?: Readonly<Record<number, string | readonly string[]>>

Defined in: wallet-solana/src/serialized.ts:138

Accounts by position in the instruction: this address, or one of these. Lookup-table accounts are resolved first.


optional data?: string

Defined in: wallet-solana/src/serialized.ts:134

Hex the instruction data starts with (case-insensitive); omitted = any data.


optional dataLength?: number

Defined in: wallet-solana/src/serialized.ts:136

Exact length of the instruction data in bytes, for fixed layouts.


program: string

Defined in: wallet-solana/src/serialized.ts:132

Program the instruction calls.