Getting Started with the Solana Toolkit

Info

This is a beta version of the Solana Toolkit, and is still a WIP. Please post all feedback as a GitHub issue here.

The Solana Program development toolkit is publish as the mucho npm package. The mucho command will be used to run most of the Solana program development tools within the toolkit - mucho tools, one cli.

Installation #

To get started, install The Solana Toolkit:

npx -y mucho@latest install

This will install the latest versions of the following:

  • Solana CLI / Agave Tool Suite: A command line tool that allows developers to interact with the Solana blockchain, manage accounts, send transactions, and deploy programs.
  • Mucho CLI - a superset of popular developer tools within the Solana ecosystem used to simplify the development and testing of Solana blockchain programs.
  • Rust: The programming language that Solana Smart Contracts are written in.
  • Anchor: A framework for writing Solana programs that abstracts many complexities to speed up smart contract development.
  • Fuzz Tester: Rust-based fuzzing framework for Solana programs to help you ship secure code.
  • Code Coverage Tool: A code coverage CLI tool for Solana programs.

Generate a keypair #

For a fresh installation of the Solana CLI, you're required to generate a new keypair.

solana-keygen new

This will store the your new keypair at the Solana CLI's default path (~/.config/solana/id.json) and print the pubkey that was generated.

Get your keypair's public key #

solana address

Fund your keypair #

solana airdrop 10 --url localhost

Set your network configuration #

Check your current config:

solana config get

To use this toolkit, update your config to connect to localhost:

solana config set --url localhost

To test locally, you must also spin up a local node to run on your localhost:

mucho validator

For a more information, read the Local Testing Guide.

Kolejne kroki #

Now let's Create a Solana Project!