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

Client for the SPL Memo program (v2): a single instruction whose data is the memo's UTF-8 bytes; any accounts passed along must sign the transaction, which the program verifies.

  • 1 type
  • 2 values

SPL Memo program (v2) address. The program validates a string of UTF-8 encoded characters and verifies that any accounts provided are signers of the transaction.

newtypenewtype MemoData
#

Memo instruction data: the raw UTF-8 bytes of the memo text (no discriminant, no length prefix). The Binary get decodes leniently by design: invalid UTF-8 sequences are replaced (never fails), and all remaining input is consumed as the memo text. Encoding via put is the production path used when building instructions; decoding exists mainly for round-tripping and inspection.

Constructors

Instances3Eq, Show, Binary
  • Eq MemoDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.SplPrograms.Memo
  • Show MemoDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.SplPrograms.Memo
  • Binary MemoDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.SplPrograms.Memo

Creates a memo instruction from the memo text and the list of signer accounts (may be empty). The memo program verifies each provided account signed the transaction. # Account references 0..n. `[SIGNER]` Signer accounts