This guide provides a structured path to working with the Saros Finance SDK on Solana devnet. It covers environment setup, troubleshooting common compatibility issues, and progressively demonstrates how to:
Following the tutorials in sequence ensures a working development environment and smooth SDK usage.
This guide describes how to set up a Node.js environment for the @saros-finance/sdk package and verify its functionality on Solana devnet. It includes environment preparation, dependency installation, required module adjustments, a working verification script, and a troubleshooting section.
Verify installation:
node -v
npm -v
solana --version
Generate and fund a devnet keypair:
solana config set --url https://api.devnet.solana.com
solana-keygen new --outfile ~/.config/solana/id.json
solana airdrop 2
solana balance