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

  • 4 types
newtypenewtype Lamport
#

Lamport is the smallest unit of SOL (1 SOL = 1 billion lamports). Show renders the amount converted to SOL (e.g. 0.000000001 SOL ◎), not the raw count.

Constructors

Instances11Enum, Eq, Integral, Num, Ord, Real, …

Account

1 declaration
datadata Account
#

An account paired with its address, as returned by RPC methods such as getProgramAccounts.

Constructors

Instances6Eq, Show, Generic, FromJSON, ToJSON, Rep

Account Info

1 declaration
datadata AccountInfo
#

The base state shared by every Solana account. Accounts hold at most 10 MiB of data.

Constructors

  • AccountInfo
    • lamports :: Lamport

      Amount of lamports in the account

    • dataField :: AccountData

      The account's data: executable code for program accounts, program-defined state otherwise. Named dataField because data is reserved in Haskell; serialized as data in JSON.

    • owner :: SolanaPublicKey

      The program that owns this account. Only the owner program may modify the account's data or debit its lamports.

    • executable :: Bool

      A boolean flag that indicates whether this account contains a loaded program.

Instances6Eq, Show, Generic, FromJSON, ToJSON, Rep

Account Data

1 declaration
datadata AccountData
#

An account's data field as the node returns it: the raw bytes for the base58 / base64 encodings, or the node's own program-parsed view for jsonParsed.

On the wire, binary data is either a bare Base58 string (the node's default binary encoding, only offered for accounts of at most 128 bytes) or a [data, encoding] pair; toJSON emits the bare Base58 form. With jsonParsed the node only parses accounts whose owner program it has a parser for and falls back to the base64 pair otherwise, so a jsonParsed request can still yield AccountDataBinary.

Constructors

Instances6Eq, Show, Generic, FromJSON, ToJSON, Rep