Skip to main content
This guide provides instructions on how to get started with building on Meteora’s Dynamic Fee Sharing program using the Dynamic Fee Sharing TypeScript SDK. Before you begin, here are some important resources:

Typescript SDK

Meteora Dynamic Fee Sharing Typescript SDK

Dynamic Fee Sharing NPM Package

Meteora Dynamic Fee Sharing NPM Package

Installation

To use the SDK in your project, install it using your preferred package manager:
npm install @meteora-ag/dynamic-fee-sharing-sdk @solana/web3.js

Initialization

Once installed, you can initialize the SDK in your TypeScript/JavaScript project like this:
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 DynamicFeeSharingClient
const client = new DynamicFeeSharingClient(connection, "confirmed");

Testing the SDK (for contributors)

If you have cloned the SDK repository and want to run the built-in tests:
# Install dependencies
bun install

# Run tests
bun test

Development Resources

Faucets

Devnet Faucet

When working on devnet, you might need test tokens. Here is a helpful faucet.