{"repo":"HongThaiPham/solana-pinocchio-examples","free":true,"listed":false,"github":"https://github.com/HongThaiPham/solana-pinocchio-examples","clone":"git clone https://github.com/HongThaiPham/solana-pinocchio-examples.git","description":"A repository of Solana program examples using Pinocchio","language":"TypeScript","stars":26,"topics":["blockchain","pinocchio","solana","solana-program"],"license":null,"category":"blockchain-web3","readme_excerpt":"Solana Pinocchio Examples This repository contains examples demonstrating how to use Pinocchio, a zero-dependency library for creating Solana programs in Rust. What is Pinocchio? Pinocchio is a lightweight library that allows you to write Solana programs without depending on the solana-program crate. It leverages zero-copy types to read program input parameters directly from the byte array passed to the program's entrypoint by the SVM (Solana Virtual Machine) loader. Key Benefits: - Zero dependencies : Eliminates the need for solana-program crate - Resolves dependency conflicts : Avoids versioning issues with the Solana runtime - Lightweight : Minimizes program size and complexity - Efficient : Uses zero-copy deserialization for better performance The example programs Basics Hello world Hello World on Solana! A minimal program that logs a greeting. Account-data Store and retrieve data using Solana accounts. Storing global state - Counter Use a PDA to store global state, making a counter that increments when called. Saving per-user state - Favorites Save and update per-user state on the blockchain, ensuring users can only update their own information. Checking Instruction Accounts Check that the accounts provided in incoming instructions meet particular criteria. Closing Accounts Close an account and get the Lamports back. Creating Accounts Make new accounts on the blockchain. Cross program invocations Invoke an instruction handler from one onchain program in another onchain p","default_branch":null,"files":null,"tree":[],"storefront":"/r/HongThaiPham","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HongThaiPham/solana-pinocchio-examples/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}