Skip to content

Instantly share code, notes, and snippets.

@scopenco
Created April 8, 2025 19:04
Show Gist options
  • Save scopenco/713b0ced18bff2a11f650b0219cc7dd1 to your computer and use it in GitHub Desktop.
Save scopenco/713b0ced18bff2a11f650b0219cc7dd1 to your computer and use it in GitHub Desktop.

Revisions

  1. scopenco created this gist Apr 8, 2025.
    44 changes: 44 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    # install solana dev tools
    curl --proto '=https' --tlsv1.2 -sSfL https://solana-install.solana.workers.dev | bash

    # create a wallet / feepayer address
    solana-keygen new

    # get public key
    solana address

    # install chrome-extension phantom wallet
    # import private key from /Users/askopenko/.config/solana/id.json
    # create simple password in phantom
    # configure devnet in phantom

    # configure solana one if networks
    solana config get
    solana config set --url mainnet-beta
    solana config set --url devnet
    solana config set --url localhost
    solana config set --url testnet

    # get some coins to solana in devnet
    solana airdrop 2

    # solana see the balance
    solana balance

    # set solana to use local validator
    solana config set -ul
    # run local validator
    solana-test-validator


    # create program address and repo structure
    anchor init my_proj && cd my_proj

    # Build Program
    anchor build

    # Deploy Program
    anchor deploy

    # Test Program
    anchor test