pinocchio-memo

Crates.iopinocchio-memo
lib.rspinocchio-memo
version0.2.0
created_at2025-03-28 18:23:23.566554+00
updated_at2025-07-24 23:18:13.729456+00
descriptionPinocchio helpers to invoke Memo program instructions
homepage
repositoryhttps://github.com/anza-xyz/pinocchio
max_upload_size
id1609962
size6,333
(anza-team)

documentation

README

pinocchio-memo

pinocchio-memo

Overview

This crate contains pinocchio helpers to perform cross-program invocations (CPIs) for SPL Memo program instructions.

Each instruction defines a struct with the accounts and parameters required. Once all values are set, you can call directly invoke or invoke_signed to perform the CPI.

This is a no_std crate.

Note: The API defined in this crate is subject to change.

Getting Started

From your project folder:

cargo add pinocchio-memo

This will add the pinocchio-memo dependency to your Cargo.toml file.

Examples

Creating a memo:

// Both accounts should be signers
Memo {
    signers: &[&account_infos[0], &account_infos[1]],
    memo: "hello",
}
.invoke()?;

License

The code is licensed under the Apache License Version 2.0

Commit count: 283

cargo fmt