1. Initialize a new project
Create a new project directory:2. Installation
The legacy Whirlpools Typescript SDK (@orca-so/whirlpools-sdk) allows for easy interaction with a deployed Whirlpools program and is a solid choice if you are working with Solana Web3.js.
In your project, run:
3. Setup Whirlpool Context
TheWhirlpoolContext object provides the necessary environment information to build and send transactions and is core to running many functions in the SDK.
Setup your context object for a Node-side wallet:
Setup for browser applications
The context relies on Anchor’s Wallet interface. Implement your own wallet interface or find one of the sample implementations in the community and feed it into the context object.TypeScript
