{"id":13454841,"url":"https://github.com/256hax/solana-anchor-react-minimal-example","last_synced_at":"2025-03-24T07:32:17.166Z","repository":{"id":40525102,"uuid":"437744055","full_name":"256hax/solana-anchor-react-minimal-example","owner":"256hax","description":"Solana, Anchor, Metaplex, React Minimal Example. Out of the Box, easy to start!","archived":false,"fork":false,"pushed_at":"2024-11-08T05:37:50.000Z","size":24986,"stargazers_count":85,"open_issues_count":0,"forks_count":25,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T06:27:39.636Z","etag":null,"topics":["anchor","arweave","blockchain","example","metaplex","nft","react","solana","spl-token"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/256hax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-13T05:13:32.000Z","updated_at":"2024-11-08T05:37:54.000Z","dependencies_parsed_at":"2023-11-11T08:22:59.043Z","dependency_job_id":"db377930-a733-443c-85f6-7c31d07d066a","html_url":"https://github.com/256hax/solana-anchor-react-minimal-example","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/256hax%2Fsolana-anchor-react-minimal-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/256hax%2Fsolana-anchor-react-minimal-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/256hax%2Fsolana-anchor-react-minimal-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/256hax%2Fsolana-anchor-react-minimal-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/256hax","download_url":"https://codeload.github.com/256hax/solana-anchor-react-minimal-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245227547,"owners_count":20580897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anchor","arweave","blockchain","example","metaplex","nft","react","solana","spl-token"],"created_at":"2024-07-31T08:00:58.441Z","updated_at":"2025-03-24T07:32:15.244Z","avatar_url":"https://github.com/256hax.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Solana x Anchor x React Minimal Example\nSolana, Anchor, Metaplex, React Minimal Example.  \nThis example codes is Out of the Box!  \nI wrote the code in a single file to make it easy to understand, without dividing it into modules.\n\nFor experimental purposes only.  \n\n## How To Run\nIt depends on Framework (e.g. Anchor, React, JS...). Check README in each directory.\n\n## Wallet Key\nI set id.json(keypair of wallet) at each directory.  \nFeel free to use that for only Devnet/Testnet. I hope you can easy to start minimal examples.\n\n# Docs\n## Solana\n- [Docs - Solana Cookbook](https://solanacookbook.com/)\n- [Docs - Solana CLI(e.g. Create Account, Transfer SOL)](https://docs.solana.com/cli)\n- [Docs - SPL Token CLI(e.g. Create Token/ATA, Mint, Transfer))](https://spl.solana.com/token)\n- [Docs - Solana Errors List](https://github.com/solana-labs/solana/blob/master/sdk/src/transaction/error.rs)\n- [API - (Rust)solana_program](https://docs.rs/solana-program/latest/solana_program/)\n- [API - (Rust)solana_sdk](https://docs.rs/solana-sdk/latest/solana_sdk/)\n- [API - (Rust)spl_token](https://docs.rs/spl-token/latest/spl_token/)\n- [API - (JS)@solana/web3.js](https://solana-labs.github.io/solana-web3.js/modules.html)\n- [API - (JS)@solana/spl-token](https://solana-labs.github.io/solana-program-library/token/js/)\n- [GitHub - solana-labs/solana-program-library](https://github.com/solana-labs/solana-program-library)\n- [GitHub - SPL Token Rust](https://github.com/solana-labs/solana-program-library/blob/master/token/program/src/instruction.rs)\n- [GitHub - SPL Token JavaScript](https://github.com/solana-labs/solana-program-library/tree/master/token/js/src/actions)\n- [GitHub -  solana-developers/program-examples](https://github.com/solana-developers/program-examples)\n- [Support - Discord Solana](https://discord.com/invite/kBbATFA7PW)\n- [Support - Stack Exchange Solana](https://solana.stackexchange.com/)\n\n## Solana Pay\n- [GitHub - solana-pay-minimal-example - 256hax](https://github.com/256hax/solana-pay-minimal-example)\n\n## Anchor\n- [Docs - Anchor(Installation, Core Concept, Guides, References)](https://www.anchor-lang.com/)\n- [Docs - The Anchor Book](https://book.anchor-lang.com/)\n- [Docs - Anchor Errors List](https://anchor.so/errors)\n- [API - (Rust)anchor_lang](https://docs.rs/anchor-lang/latest/anchor_lang/)\n- [API - (Rust)anchor_spl](https://docs.rs/anchor-spl/latest/anchor_spl/index.html)\n- [API - (JS)@coral-xyz/anchor](https://coral-xyz.github.io/anchor/ts/index.html)\n- [GitHub - anchor](https://github.com/coral-xyz/anchor)\n- [Support - Discord Anchor](https://discord.com/invite/ZCHmqvXgDw)\n\n## NFT/Compressed NFT\n- Reference links move to [metaplex](https://github.com/256hax/solana-anchor-react-minimal-example/tree/main/scripts/metaplex)\n- [Support - Discord Metaplex](https://discord.com/invite/metaplex)\n\n## Wallet Adapter for dApps\n- [Docs - Phantom](https://docs.phantom.app/)\n- [GitHub - anza-xyz/wallet-adapter](https://github.com/anza-xyz/wallet-adapter)\n\n## Wallet App\n- [API - (JS)Wallet Standard](https://wallet-standard.github.io/wallet-standard/)\n- [GitHub - wallet-standard/wallet-standard](https://github.com/wallet-standard/wallet-standard)\n- [GitHub - anza-xyz/wallet-standard](https://github.com/anza-xyz/wallet-standard)\n\n## Arweave\n- [Docs - Arweave Developers](https://docs.arweave.org/developers/)\n- [GraphQL - Arweave](https://arweave.net/graphql)\n- [GitHub - arweave-js](https://github.com/ArweaveTeam/arweave-js)\n- [GitHub - arlocal](https://github.com/textury/arlocal)\n- [GitHub - ArConnect](https://github.com/th8ta/ArConnect)\n- [Support - Discord Arweave](https://discord.com/invite/BXk8tq7)\n\n# Remarks\n## Tools\n### User-friendly Transaction Explorer\nI recommend to use Solana Explorer for localnet.\n\n1. Run local validator.\n```\n% solana-test-validator\n```\n\n2. Deploy something to localnet.\n\n3. Search Transaction Signature or public-key in Solana Explorer.\n[Solana Explorer (localhost:8899)](https://explorer.solana.com/?cluster=custom)\n\n### Use Metaplex in Localnet\nYou can use Metaplex(e.g. mint/update NFTs) in Localnet.  \n\n#### Case 1 Anchor:  \n[Mint NFT using Metaplex and Anchor in Localnet](https://github.com/256hax/solana-anchor-react-minimal-example/tree/main/anchor/mint_nft_using_metaplex_anchor_in_localnet)  \n\n#### Case 2 Solana CLI:  \n```\n% solana-test-validator --url https://api.devnet.solana.com /\n\t--clone metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s /\n\t--clone PwDiXFxQsGra4sFFTT8r1QWRMd4vfumiWC1jfWNfdYT /\n\t--clone H7h6dv6X9KGLuCFvYMNa1zmCP5VCSzw8AkQGod6zaCnX /\n\t--clone ojLGErfqghuAqpJXE1dguXF7kKfvketCEeah8ig6GU3\n```\n\nRemove test-ledger directory if it exists before running.\n  \n#### Case 3 Metaplex Amman:  \n[2/ Just add any program you need to the validator config and get back to building!](https://x.com/metaplex/status/1756731772224909638?s=20)\n\n## Outline Document for Product/Project Manager\n[Solana Blockchain Outline Figure](https://docs.google.com/presentation/d/1XXPCYqLqKd8rNa_n0ZjCyGAxjgxhmNG0/edit?usp=sharing\u0026ouid=115427085832614065046\u0026rtpof=true\u0026sd=true)\n\n### Example Image\n![STEPN ON/OFF Chain](https://github.com/256hax/solana-anchor-react-minimal-example/blob/main/docs/screenshot/stepn-screenshot.png?raw=true)  \n\n![STEPN Mapping System](https://github.com/256hax/solana-anchor-react-minimal-example/blob/main/docs/screenshot/stepn-mapping-system.png?raw=true)  \n\n![Magic Eden Escrow](https://github.com/256hax/solana-anchor-react-minimal-example/blob/main/docs/screenshot/magiceden-accounts.png?raw=true)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F256hax%2Fsolana-anchor-react-minimal-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F256hax%2Fsolana-anchor-react-minimal-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F256hax%2Fsolana-anchor-react-minimal-example/lists"}