Are you just starting out on Solana? Stuck on something?
Or maybe you're in a hackathon right now, building an absolutely epic dApp.
Take a look at this awesome collection of examples in Typescript using Solana's web3.js
(and Anchor); for your cloning & running pleasure.
📁 Each example contains two folders:
native
- Written using Solana's native@solana/web3.js
library.anchor
- Written using Anchor's@project-serum/anchor
library.
🔧 How to build & run:
- Before running anything in any folder make sure you pull in the dependencies with
yarn install
. native
-yarn run native
anchor
-yarn run anchor
🔍 Got something you want to see here? Add it to the list. Or better yet, write one & create a PR!
-
- Create an Account
- Rent
- Assign Data to an Account
- Reallocate an Account's Data
- Transfer an Account's Ownership
- Destroy an Account
- Transfer SOL
- Stake SOL with a Validator
-
- Create an SPL Token
- Token Metadata
- Minting Tokens
- Mint Authority
- Transferring Tokens
- Selling Tokens
- Controlling Token Supply
- Disabling Token Minting
- Freezing Token Accounts
-
- Create an NFT
- NFT Metadata
- Master Edition NFT
- Other Edition NFT
- NFT Collections
- NFT Royalties & Features
- NFT Utilities