GoFundMeme
  • GoFundMeme - Launch the next viral meme
  • FAQs
  • Getting Started
    • Referral Program
    • Reward System
    • Point System
    • Fees
  • GoFundMeme
    • Launch a Memecoin
      • Bonding Curve
        • Intro
      • Fair Launch
        • Tokenomics
        • Target Target
        • Boosters & Vesting
    • Harvest (LP LOCK)
      • How it works
      • Harvesting LP Fees
      • Claim Rewards
    • GFM Protocol
    • Defi x Memecoins
    • Staking
    • KYC Gating
    • SocialFi
      • Community Bubbles
  • Developers
    • GFM for Builders
    • Installation Guide
    • Init gfmSDK
    • GFM Methods
      • Bonding Curve
        • Pool Interaction
        • Pool Staking Network
      • Fair Launch
        • Pool Interaction
    • APIs
      • Create Pools
    • WebSockets
      • Subscriptions
Powered by GitBook
On this page
  1. Developers

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. 🚀

PreviousInstallation GuideNextGFM Methods

Last updated 2 months ago