Solana, Anchor, Metaplex, React Minimal Example.
This example codes is Out of the Box!
I wrote the code in a single file to make it easy to understand, without dividing it into modules.
For experimental purposes only.
It depends on Framework (e.g. Anchor, React, JS...). Check README in each directory.
I set id.json(keypair of wallet) at each directory.
Feel free to use that for only Devnet/Testnet. I hope you can easy to start minimal examples.
- Docs - Solana Cookbook
- Docs - Solana CLI(e.g. Create Account, Transfer SOL)
- Docs - SPL Token CLI(e.g. Create Token/ATA, Mint, Transfer))
- Docs - Solana Errors List
- API - (Rust)solana_program
- API - (Rust)solana_sdk
- API - (Rust)spl_token
- API - (JS)@solana/web3.js
- API - (JS)@solana/spl-token
- GitHub - solana-labs/solana-program-library
- GitHub - SPL Token Rust
- GitHub - SPL Token JavaScript
- GitHub - solana-developers/program-examples
- Support - Discord Solana
- Support - Stack Exchange Solana
- Docs - Anchor(Installation, Core Concept, Guides, References)
- Docs - The Anchor Book
- Docs - Anchor Errors List
- API - (Rust)anchor_lang
- API - (Rust)anchor_spl
- API - (JS)@coral-xyz/anchor
- GitHub - anchor
- Support - Discord Anchor
- Reference links move to metaplex
- Support - Discord Metaplex
- API - (JS)Wallet Standard
- GitHub - wallet-standard/wallet-standard
- GitHub - anza-xyz/wallet-standard
- Docs - Arweave Developers
- GraphQL - Arweave
- GitHub - arweave-js
- GitHub - arlocal
- GitHub - ArConnect
- Support - Discord Arweave
I recommend to use Solana Explorer for localnet.
- Run local validator.
% solana-test-validator
-
Deploy something to localnet.
-
Search Transaction Signature or public-key in Solana Explorer. Solana Explorer (localhost:8899)
You can use Metaplex(e.g. mint/update NFTs) in Localnet.
Mint NFT using Metaplex and Anchor in Localnet
% solana-test-validator --url https://api.devnet.solana.com /
--clone metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s /
--clone PwDiXFxQsGra4sFFTT8r1QWRMd4vfumiWC1jfWNfdYT /
--clone H7h6dv6X9KGLuCFvYMNa1zmCP5VCSzw8AkQGod6zaCnX /
--clone ojLGErfqghuAqpJXE1dguXF7kKfvketCEeah8ig6GU3
Remove test-ledger directory if it exists before running.
2/ Just add any program you need to the validator config and get back to building!