solana-write-account 0.2.1

A Solana program and library for overcoming Solana transaction size limit.
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 96.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 855.47 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 45s Average build duration of successful builds.
  • all releases: 45s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mina86

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.