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

Client for the System program: account creation and allocation (plain and seed-derived), program assignment, lamport transfers and durable-nonce account management, plus decodeNonceAccount for nonce account state. Instruction data is byte-verified against the Rust SDK.

Synopsis

System program address. This program contain instructions to: create new accounts, allocate account data, assign accounts to owning programs, transfer lamports from System Program owned accounts and pay transaction fees.

datadata SystemInstruction
#

Constructors

Instances5Eq, Show, Generic, Binary, Rep

Decodes a nonce account's data: a u32 version (0 or 1), then a u32 state discriminant (0 uninitialized, 1 initialized with authority, durable nonce, and fee-rate fields). Trailing bytes (account padding) are allowed.

Creates instruction to "Create a new account at an address derived from a base pubkey and a seed" Receives the funding account, the new account, base pubkey, seed, amount to transfer, the number of bytes of memory to allocate and the owner program account. # Account references 0. `[WRITE, SIGNER]` Funding account 1. `[WRITE]` Created account 2. `[SIGNER]` (optional) Base account; the account matching the base Pubkey below must be provided as a signer, but may be the same as the funding account and provided as account 0

Creates instruction to "Drive state of Uninitialized nonce account to Initialized" Receives the nonce account and the entity authorized to execute nonce instructions on it. # Account references 0. `[WRITE]` Nonce account 1. `[]` RecentBlockhashes sysvar 2. `[]` Rent sysvar

Creates instruction to "Allocate space in a (possibly new) account without funding" Receives the account and the number of bytes of memory to allocate. # Account references 0. `[WRITE, SIGNER]` New account