{"repo":"solana-foundation/program-examples","free":true,"listed":false,"github":"https://github.com/solana-foundation/program-examples","clone":"git clone https://github.com/solana-foundation/program-examples.git","description":"A repository of Solana program examples","language":"TypeScript","stars":1426,"topics":["hacktoberfest","anchor","anchor-lang","blockchain","solana","web3","native-solana","solana-programs"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Program Examples Onchain program examples for ⚓ Anchor, 🤥 Pinocchio, and 🦀 Native Rust. This repo contains Solana onchain programs (referred to as 'Smart Contracts' in other blockchains). [!NOTE] If you're new to Solana, you don't need to create your own programs to perform basic things like making accounts, creating tokens, sending tokens, or minting NFTs. These common tasks are handled with existing programs, for example the System Program (for making account or transferring SOL) or the token program (for creating tokens and NFTs). See the Solana Developer site to learn more. ⚠️ This repository uses pnpm as the default package manager. Ensure pnpm is installed before running any examples. Each folder includes examples for one or more of the following: - anchor - Written using Anchor, the most popular framework for Solana development, which uses Rust. Use anchor build and anchor deploy to build and deploy the program. Tests should be executed using pnpm test as defined in the Anchor.toml scripts section. - pinocchio - Written using Pinocchio, a zero-copy, zero-allocation library for Solana programs. Build and test commands are the same as native examples. Run pnpm test to execute tests. - native - Written using Solana's native Rust crates and vanilla Rust. Build and test commands are defined via pnpm scripts and use litesvm for testing. Run pnpm test to execute tests. If a given example is missing, please send us a PR to add it! Our aim is to have every example available i","default_branch":null,"files":null,"tree":[],"storefront":"/r/solana-foundation","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/solana-foundation/program-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."}