Skip to content

rohit-goyal/web3-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web3 Examples

👾 Welcome, Solana Developer. 👾

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.

🔷 TypeScript. 🔶 JavaScript. 🌀 Web3.

Navigating this Repo

📁 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!

  • [ ] Basics

    • 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
  • [ ] Tokens

    •  Create an SPL Token
    •  Token Metadata
    •  Minting Tokens
    •  Mint Authority
    •  Transferring Tokens
    •  Selling Tokens
    •  Controlling Token Supply
    •  Disabling Token Minting
    •  Freezing Token Accounts
  • [ ] NFTs

    •  Create an NFT
    •  NFT Metadata
    •  Master Edition NFT
    •  Other Edition NFT
    •  NFT Collections
    •  NFT Royalties & Features
    •  NFT Utilities

About

A repository of Solana web3.js examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.1%
  • TypeScript 10.7%
  • JavaScript 2.2%
  • Rust 1.4%
  • CSS 0.5%
  • Makefile 0.1%