| Crates.io | pinocchio-memo |
| lib.rs | pinocchio-memo |
| version | 0.2.0 |
| created_at | 2025-03-28 18:23:23.566554+00 |
| updated_at | 2025-07-24 23:18:13.729456+00 |
| description | Pinocchio helpers to invoke Memo program instructions |
| homepage | |
| repository | https://github.com/anza-xyz/pinocchio |
| max_upload_size | |
| id | 1609962 |
| size | 6,333 |
pinocchio-memo
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.
From your project folder:
cargo add pinocchio-memo
This will add the pinocchio-memo dependency to your Cargo.toml file.
Creating a memo:
// Both accounts should be signers
Memo {
signers: &[&account_infos[0], &account_infos[1]],
memo: "hello",
}
.invoke()?;
The code is licensed under the Apache License Version 2.0