Pool Interaction
Fetching a Fair Launch Pool
import { Connection, PublicKey } from "@solana/web3.js";
import { initGoFundMemeSDK } from "@gofundmeme/sdk";
const connection = new Connection("https://api.mainnet-beta.solana.com");
(async () => {
const gfmSDK = await initGoFundMemeSDK({ connection });
// Replace with your token mint address
const mintAddress = new PublicKey("THE TOKEN MINT ADDRESS");
// Fetch the Fair Launch Pool
const pool = await gfmSDK.pools.fairLaunch.fetchFairLaunchPool({
mintB: mintAddress,
});
console.log("Fair Launch Pool Data:", pool);
})();π Checking Pool Status
π° Funding the Pool
πΈ Defunding (Withdrawing Contributions)
ποΈ Claiming Presale Allocations
π― Claiming Preallocation (Marketing, Team, etc.)
π Fetching Presaler Rewards Summary
π Example Response:
π Claiming Presaler LP Rewards
π¦ Fetching LP Fees & Harvester Rewards
π Example Response:
πΎ Harvesting LP Fees
Last updated