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.NativePrograms.ComputeBudget

Client for the Compute Budget program: instructions setting a transaction's compute-unit limit, compute-unit price (priority fee), heap size and loaded-accounts data size limit. Instruction data is byte-verified against the Rust SDK.

  • 1 type
  • 5 values

Compute Budget program address. This program contains instructions to set transaction-wide compute limits, heap size and a compute unit price ("priority fee") for transaction prioritization.

Compute Budget instructions, serialized in the Rust SDK's borsh layout: a single-byte discriminant followed by the little-endian field. The deprecated variant 0 is intentionally not modeled.

Constructors

Instances5Eq, Show, Generic, Binary, Rep

Creates instruction to "Request a transaction-wide program heap region size in bytes". Compute Budget instructions take no accounts.

Creates instruction to "Set the compute unit price in micro-lamports" (priority fee). Compute Budget instructions take no accounts.