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

Client for the Address Lookup Table program. Instruction data is bincode-encoded (u32 little-endian discriminant), like the System Program; the ExtendLookupTable variant's address vector is bincode's Vec<Pubkey> encoding (u64 little-endian count followed by the raw 32-byte keys).

  • 2 types
  • 11 values
Instances5Eq, Show, Generic, Binary, Rep
datadata LookupTableState
#

An address lookup table account's on-chain state: the fixed-size LookupTableMeta fields followed by the raw stored addresses.

Instances2Eq, Show
  • Eq LookupTableStateDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTable
  • Show LookupTableStateDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTable

Decodes an address lookup table account's data. The first 56 bytes are the fixed LookupTableMeta region (u32 discriminant, two u64 slots, a u8 start index, a bincode Option<Pubkey> authority, and trailing padding up to the 56-byte boundary); the remainder is the raw table of 32-byte addresses.

Creates instruction to "Create a lookup table" and returns it together with the table's derived address. Receives the authority (not required to sign), the payer (which must sign) and the recent slot used to derive the table's address. Calls error if the lookup-table address cannot be derived (practically unreachable: requires every bump candidate to land on-curve). # Account references 0. `[WRITE]` Uninitialized lookup table account 1. `[]` Authority 2. `[WRITE, SIGNER]` Payer account 3. `[]` System program

Creates instruction to "Freeze a lookup table, making it immutable" Receives the lookup table account and its authority (which must sign). # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority

Creates instruction to "Extend a lookup table with new addresses" Receives the lookup table account, its authority (which must sign), an optional payer to fund the extension (the system program is always included alongside it) and the addresses to append. # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority 2. `[WRITE, SIGNER]` (optional) Payer account 3. `[]` (optional) System program

Creates instruction to "Deactivate a lookup table, making it unusable and eligible for closure once it is no longer referenced by any transaction" Receives the lookup table account and its authority (which must sign). # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority

Creates instruction to "Close a deactivated lookup table, reclaiming its lamports" Receives the lookup table account, its authority (which must sign) and the recipient of the reclaimed lamports. # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority 2. `[WRITE]` Recipient account