HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulesolana-haskell-sdk-1.3.0.0GHC2021

Network.Solana.Core.Instruction

Instructions -- a program id, the AccountMetas it touches and its input bytes -- and their compilation into the message wire format: compileInstruction resolves each account (and the program id) to an index into a message's ordered account list, failing with CompileException when a key is absent or its index does not fit in a byte.

  • 5 types
  • 5 values
datadata Instruction
#

A single program invocation: which program to call, the accounts it may read or write, and the input bytes to pass it.

Instances4Eq, Show, Generic, Rep
datadata AccountMeta
#

Each account required by an instruction must be provided as an AccountMeta that contains:

Instances4Eq, Show, Generic, Rep
newtypenewtype InstructionData
#

Raw instruction input bytes. Show renders them in Base64.

Instances4Eq, Show, Generic, Rep

Replace each pubkey referenced by an instruction with its index into the given account-key table. Left when a key is not present in the table, or sits at position 256 or beyond -- a compiled index is a single byte, so such a key is rejected rather than silently wrapped into the wrong index (mirroring the Rust SDK's CompileError::AccountIndexOverflow).

datadata CompiledInstruction
#

The structure of a compiled instruction.

Instances7Eq, Show, Generic, Binary, FromJSON, ToJSON, …
newtypenewtype CompileException
#

Compilation failure, carrying a message: an instruction references an account key that is missing from the message's account table, an account or lookup-table index does not fit in a byte, or a signing key does not match the message's required signers.

Constructors

Instances2Show, Exception