solana-chunk-loader

Crates.iosolana-chunk-loader
lib.rssolana-chunk-loader
version0.2.2
created_at2025-04-17 15:13:55.562045+00
updated_at2025-11-19 18:48:26.937205+00
descriptionUtility Solana program to send instruction data by chunks
homepage
repositoryhttps://github.com/lincot/solana-chunk-loader
max_upload_size
id1637987
size69,675
Timofey (lincot)

documentation

README

Solana Chunk Loader

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.

Testing

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
Commit count: 0

cargo fmt