Expand description
Hopper-owned SPL Memo program builder.
The SPL Memo program records arbitrary UTF-8 byte payloads in transaction logs and asserts that a list of accounts signed the containing transaction. It is the canonical primitive for on-chain metadata stamping (off-chain reference numbers, orderbook IDs, arbitrary protocol tags) without spinning up program-owned state.
§Programs
MEMO_PROGRAM_ID- Memo v2, the default and overwhelming majority case.v1::MEMO_V1_PROGRAM_ID- legacy Memo v1, kept available for protocols still pinned to the original program. New code should prefer Memo v2.
§Quick start
ⓘ
use hopper_memo::Memo;
Memo {
signers: &[user_view],
memo: b"order=42",
program_id: None,
}
.invoke()?;Memo strings can be empty; the program enforces only the signer constraints. The memo body is passed verbatim as the instruction data. UTF-8 framing is the caller’s responsibility.
Modules§
- v1
- Legacy SPL Memo v1 helpers.
Structs§
- Memo
- SPL Memo CPI builder.
Constants§
- MAX_
MEMO_ SIGNERS - Maximum signer accounts a single memo invocation may cite.
- MEMO_
PROGRAM_ ID - SPL Memo v2 program id:
MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr.