Solana Cookbook
Everything you need to install and implement to develop on Solana on your Mac Device
Last updated
Everything you need to install and implement to develop on Solana on your Mac Device
Last updated
is a library that has a lot of the basic Solana tools to interact, send transactions, and read from the blockchain.
@solana/spl-token
is a library that contains many of the javascript/typescript bindings needed to interact with SPL tokens. You can use this library to mint new SPL tokens, transfer tokens, and more.
You can install this library with the following:
There is a collection of libraries that can help bootstrap wallet connections within Solana called wallet-adapter. Currently the package supports use within Svelte, Angular, Vue.js, and React. Wallet-adapter can quickstart your dApp integration with wallets like , , and more.
You can install this library with the following:
MACOS
Open your favorite Terminal application.
The following output indicates a successful update:
Depending on your system, the end of the installer messaging may prompt you to
If you get the above message, copy and paste the recommended command below it to update PATH
.
Confirm you have the desired version of solana
installed by running:
After a successful install, solana-install update
may be used to easily update the Solana software to a newer version at any time.
Downloading Binaries (macOS)
Alternatively, you can install from binaries instead of using solana-install.
Open a Command Prompt (cmd.exe
) as an Administrator.
Search for Command Prompt in the Windows search bar. When the Command Prompt app appears, right-click and select “Open as Administrator”. If you are prompted by a pop-up window asking “Do you want to allow this app to make changes to your device?”, click 'Yes'.
Copy and paste the following command, then press Enter to download the Solana installer into a temporary directory:
Copy and paste the following command, then press Enter to install the latest version of Solana. If you see a security pop-up by your system, please select to allow the program to run.
When the installer is finished, press Enter.
Close the command prompt window and re-open a new command prompt window as a normal user.
Search for "Command Prompt" in the search bar, then left-click on the Command Prompt app icon (no need to run as Administrator).
Confirm you have the desired version of solana
installed by entering:
After a successful install, solana-install update
may be used to easily update the Solana software to a newer version at any time.
Downloading Binaries
Alternatively, you can install from binaries instead of using solana-install.
Open a Command Prompt and navigate to the directory into which you extracted the binaries and run:
You can then run the following command to obtain the same result as with prebuilt binaries:
First go to
Replace LATEST_RELEASE
with your desired version and install the on your machine by running:
You can replace LATEST_RELEASE
with the release tag matching the software version of your desired release, or use one of the three symbolic channel names: stable
, beta
, or edge
. To find the latest release, check versions available .
Download the binaries by navigating to , download solana-release-x86_64-apple-darwin.tar.bz2, then extract the archive:
If v1.9.16
is not your desired version, find the latest release .
To find the latest release, check versions available .
Download the binaries by navigating to , download solana-release-x86_64-pc-windows-msvc.tar.bz2, then extract the archive using WinZip or similar.
If you are unable to use the prebuilt binaries or prefer to build it yourself from source, navigate to , and download the Source Code archive. Extract the code and build the binaries with: