The Solana RPC client.
The first token mint address in the pool.
The second token mint address in the pool.
OptionalwhirlpoolDeployment: WhirlpoolDeployment = DEFAULT_WHIRLPOOL_DEPLOYMENTThe whirlpool program and config to query against. Defaults to DEFAULT_WHIRLPOOL_DEPLOYMENT.
import { fetchSplashPool, WhirlpoolDeployment } from '@orca-so/whirlpools';
import { createSolanaRpc, devnet, address } from '@solana/kit';
const devnetRpc = createSolanaRpc(devnet('https://api.devnet.solana.com'));
const tokenMintOne = address("So11111111111111111111111111111111111111112");
const tokenMintTwo = address("BRjpCHtyQLNCo8gqRUr8jtdAj5AjPYQaoqbvcZiHok1k"); //devUSDC
const poolInfo = await fetchSplashPool(
devnetRpc,
tokenMintOne,
tokenMintTwo,
WhirlpoolDeployment.devnet,
);
Fetches the details of a specific Splash Pool.