| Crates.io | pinocchio-memo |
| lib.rs | pinocchio-memo |
| version | 0.3.0 |
| created_at | 2025-03-28 18:23:23.566554+00 |
| updated_at | 2026-01-05 16:59:04.849659+00 |
| description | Pinocchio helpers to invoke Memo program instructions |
| homepage | |
| repository | https://github.com/anza-xyz/pinocchio |
| max_upload_size | |
| id | 1609962 |
| size | 7,650 |
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: &[&accounts[0], &accounts[1]],
memo: "hello",
}
.invoke()?;
The code is licensed under the Apache License Version 2.0