Run validator
solana-test-validator
Build the contract
anchor build
Deploy the contract
anchor deploy
Note: If the deployment fails, topup the size using solana program extend
Generate key-pair string
cargo run -p keygen
paste it in the CLIENT_KEY_STR in apps/initialize and apps/increment
Initialize counter
cargo run -p initialize
Initialize counter
cargo run -p increment
Get config
solana config get
Configure localhost
solana config set --url localhost
Key Generation
solana-keygen new
Airdrop SOL
solana airdrop 2
Balance check
solana balance
Address
solana address
Deploy Rust Program
solana program deploy ./target/deploy/hello_world.so
Show programs
solana program show --programs
Show account info
solana account account-id
Anchor test
anchor test --skip-local-validator
Anchor key list
anchor keys list
More bytes to the contract using solana program extend
solana program extend AcfG5w5GjU95Ho6imbra9xBW5gvM5ujNdKN7PjNvtkfe 30000 --url "http://localhost:8899" -k ~/.config/solana/id.json