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.
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
- Packagesolana-haskell-sdk-1.3.0.0
- Exports3
- LanguageGHC2021
- LicenceApache-2.0
- SourceMemo.hs
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.
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