SOLANA network programming

Getting started:
Coin: SOL
– App version:
– Web version:
– Extension:
– CLI:

Solana cluster explorers:

    Token program (Token on Solana blockchain):
    Environment setup example:

For developer:

    Install node (v14 recommended)
    Install npm
    Install Rust v1.56.1 or later from
    Install Solana v1.8.2 or later from
curl --proto '=https' --tlsv1.2 -sSf | sh

=> rustup --version
sh -c "$(curl -sSfL"

=> solana --version

Fix Solana on Mac M1

  • You cannot start solana local cluster with “solana-test-validator”
$ solana-test-validator
Ledger location: test-ledger
Log: test-ledger/validator.log
[1]    35955 illegal hardware instruction  solana-test-validator
  • Uninstall rust and solana. Open terminal (without Rosetta mode)
rm -rf /Users/USERNAME/.local/share/solana/
rustup self uninstall
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
  • Clone terminal app to new one -> app info -> check to “Open using Rosetta
  • Now install Rust and Solana on Rosetta Terminal
  • Install rust
curl --proto '=https' --tlsv1.2 -sSf | sh
source ~/.bash_profile
arch -x86_64 /bin/bash -c "$(curl -fsSL"
arch -arm64 brew install [email protected]
arch -arm64 brew install coreutils
nano ~/.cargo/config

> file content
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",

rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
  • Install solana
cd /Volumes/Data/_ProgramFiles/
git clone
cd solana
cargo build
./scripts/ .

# Update .bash_profile
export PATH="/Volumes/Data/_ProgramFiles/solana"/bin:"$PATH"
source ~/.bash_profile
cargo install --git --tag v0.19.0 anchor-cli --locked

Test/ Play around.

You can run on any Terminal now (dont care Rosetta mode)

anchor --version
solana --version

You now can try all steps of this example:

Leave a Reply

Your email address will not be published.Required fields are marked *