| Crates.io | solana-chunk-loader |
| lib.rs | solana-chunk-loader |
| version | 0.2.2 |
| created_at | 2025-04-17 15:13:55.562045+00 |
| updated_at | 2025-11-19 18:48:26.937205+00 |
| description | Utility Solana program to send instruction data by chunks |
| homepage | |
| repository | https://github.com/lincot/solana-chunk-loader |
| max_upload_size | |
| id | 1637987 |
| size | 69,675 |
Chunk Loader is a general-purpose Solana program that can be used to send transactions in chunks when the arguments of an instruction don't fit into a single transaction.
It works by first loading the data in a temporary account (LoadChunk), and
then calling the destination program with the data (PassToCpi). After that
the temporary account is closed to reclaim SOL.
The LoadChunk transactions can be sent in parallel, confirmed and then
followed by the PassToCpi transaction. So basically, no matter the size of
the data, it takes the same time as sending two transactions sequentially.
The Chunk Loader program is currently only deployed to devnet. If you need it on mainnet, please contact me.
anchor build
cp target/idl/chunk_loader.json target/types/chunk_loader.ts ts-sdk/src/idl/
bun install
bun run build:sdk
bun test