Environment setup
This document covers the essential setup required to start building on Orca’s SDK using the Whirlpools protocol. It includes wallet setup, RPC client configuration, airdropping tokens for testing, and the basics of interacting with the Solana ecosystem.
Prerequisites
Before you start, ensure you have Node.js version 20 or higher installed on your machine. Download it from the official website: https://nodejs.org/.
1. Initialize a new project
Create a new project directory:
mkdir whirlpools
cd whirlpools
Initialize a new Node.js project:
npm init -y
Install the necessary packages:
npm install typescript @orca-so/whirlpools @solana/web3.js@rc
Initialize the project as a TypeScript project:
npx tsc --init