This guide provides instructions on how to get started with the Dynamic Fee Sharing TypeScript SDK.Before you begin, here are some important resources:
Program ID (Mainnet & Devnet):dfsdo2UqvwfN8DuUVrMRNfQe11VaiNoKcMqLHVvDPzh
Once installed, you can initialize the SDK in your TypeScript/JavaScript project like this:
Copy
Ask AI
import { Connection } from "@solana/web3.js";import { DynamicFeeSharingClient } from "@meteora-ag/dynamic-fee-sharing-sdk";// Initialize a connection to the Solana network (e.g., Mainnet)const connection = new Connection("https://api.mainnet-beta.solana.com");// Create a new instance of the DynamicFeeSharingClientconst client = new DynamicFeeSharingClient(connection, "confirmed");