HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

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.

Synopsis
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

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