Init gfmSDK

Setting up the SDK is effortless. Simply create a Solana RPC connection and pass it into the SDK initializer:

import { Connection } from "@solana/web3.js";
import { initGoFundMemeSDK } from "@gofundmeme/sdk";

// Replace with your preferred RPC endpoint
const connection = new Connection("https://api.mainnet-beta.solana.com");

(async () => {
  // This is all you need to start interacting with the GFM protocol
  const gfmSDK = await initGoFundMemeSDK({ connection });
})();

Now that your SDK is initialized, you’re ready to interact with the GoFundMeme Protocol! Check out the next sections for detailed guides on Fair Launch, Bonding Curves, Staking, and more. 🚀

Last updated