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

  • 2 types
  • 17 values

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

bincode decodes a Rust String as a u64 little-endian byte length followed by that many UTF-8 bytes.

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 "Transfer lamports" Receives the funding account, the recipient account and the amount to transfer. # Account references 0. `[WRITE, SIGNER]` Funding account 1. `[WRITE]` Recipient account

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 "Consume a stored nonce, replacing it with a successor" Receives the nonce account and the nonce authority. # Account references 0. `[WRITE]` Nonce account 1. `[]` RecentBlockhashes sysvar 2. `[SIGNER]` Nonce authority

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

Creates instruction to "Allocate space for and assign an account at an address derived from a base public key and a seed" Receives the allocated account, base account, seed, the number of bytes and the owner program account. # Account references 0. `[WRITE]` Allocated account 1. `[SIGNER]` Base account