Skip to content

A practical codebase for learning Solana smart contract development through Anchor, with examples and setup instructions for beginners.

License

Notifications You must be signed in to change notification settings

Large-Diamond/anchor-workshop

Repository files navigation

solana-workshop

Codes and notes while learning solana

Docs

Videos

Solana Ecosystem

Node.js Libraries

Install Solana CLI

sh -c "$(curl -sSfL https://release.anza.xyz/beta/install)"
# installed bins: ~/.local/share/solana/install/active_release/bin/
agave-install update # update solana cli

Solana config file

solana config get
~/.config/solana/cli/config.yml

Solana switch network

solana config set -um # mainnet-beta
solana config set -ud # devnet, use this for dev
solana config set -ul # localnet
solana config set -ut # testnet
solana config set --url https://api.testnet.solana.com

Solana RPCs

Install Anchor CLI

# install avm
cargo install --git https://github.com/coral-xyz/anchor avm --force
avm install master # latest means latest stable release
avm use master

Solana playground

Build && Deploy

anchor build
anchor deploy --provider.wallet ~/.config/solana/id.json --provider.cluster devnet

Anchor commands

anchor keys sync # regenerate declare_id with target/deploy keypair

RPC

Nice Books

Community

Testing

Tutorials

Solana static analyzer

Solana examples

Solana projects

Solana explorer

Anchor cursor

About

A practical codebase for learning Solana smart contract development through Anchor, with examples and setup instructions for beginners.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published