Skip to content

Instantly share code, notes, and snippets.

@Mr-Perfection
Last active January 6, 2023 17:10
Show Gist options
  • Save Mr-Perfection/35eafc0696b57da1ecb434e7f0e4a578 to your computer and use it in GitHub Desktop.
Save Mr-Perfection/35eafc0696b57da1ecb434e7f0e4a578 to your computer and use it in GitHub Desktop.

Command shortcuts

alias soltv="solana-test-validator"
alias solcs="solana config set --url"
alias solcg="solana config get"
alias solb="solana balance"
alias sola="solana address"
alias solair="solana airdrop"
alias sold="solana program deploy"

Deployment steps

# optional - creates the wallet address locally.
solana-keygen new
# navigate to frontend (off-chain code)
pnpm install
# on-chain code
anchor build
# get public program address from the keypair.
solana address -k target/deploy/...-keypair.json
# add program address to macro declare_id!(...)
anchor build
anchor deploy



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment