The Solana RPC client used to fetch positions.
The address of the Whirlpool.
import { fetchPositionsInWhirlpool } from '@orca-so/whirlpools';
import { createSolanaRpc, devnet, address } from '@solana/web3.js';
const devnetRpc = createSolanaRpc(devnet('https://api.devnet.solana.com'));
const whirlpool = address("Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE");
const positions = await fetchPositionsInWhirlpool(devnetRpc, whirlpool);
Fetches all positions for a given Whirlpool.