solana-write-account

Crates.iosolana-write-account
lib.rssolana-write-account
version0.2.1
created_at2025-07-29 14:38:14.054393+00
updated_at2025-07-30 16:50:59.948525+00
descriptionA Solana program and library for overcoming Solana transaction size limit.
homepagehttps://codeberg.org/mina86/solana-write-account
repository
max_upload_size
id1772406
size96,669
Michal Nazarewicz (mina86)

documentation

README

Solana write-account

Solana has a transaction size limit of 1232 bytes. This may be insufficient to more complex smart contracts which need to ingest comparatively large amounts of input data.

Possible way to address this is by introducing a helper contract which can read chunked instruction data and concatenate it inside of an account such that the target smart contract can read the overlarge payload from said account.

This repository introduces a solana-write-account crate which defines

  • a smart contract which allows writing data into accounts,
  • RPC client library functions facilitating invocation of that smart contract (requires client Cargo feature), and
  • smart contract library functions which enable target smart contract to read its instruction data from an account rather than transaction’s payload (requires lib Cargo feature).

A more detailed description of the approach is available in Solana transaction size limit article. Furthermore, the examples directory contains an example smart contract and RPC client which take advantage of the chunking approach.

Commit count: 0

cargo fmt