Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt

Use this file to discover all available pages before exploring further.

This guide shows how to install and initialize the official DBC TypeScript SDK, @meteora-ag/dynamic-bonding-curve-sdk. Before you begin, here are the main resources:

TypeScript SDK

SDK source, tests, IDLs, services, math helpers, and package metadata.

NPM Package

Published package for DBC TypeScript integrations.

Installation

Install the SDK and its Solana dependencies:
npm install @meteora-ag/dynamic-bonding-curve-sdk @solana/web3.js @solana/spl-token bn.js

Initialization

Create a client from a Solana connection and commitment:
import { Connection } from "@solana/web3.js";
import { DynamicBondingCurveClient } from "@meteora-ag/dynamic-bonding-curve-sdk";

const connection = new Connection(process.env.RPC_URL!, "confirmed");
const client = DynamicBondingCurveClient.create(connection, "confirmed");
The constructor is also public:
const client = new DynamicBondingCurveClient(connection, "confirmed");

Program ID

The SDK defaults to the public DBC program ID on both mainnet and devnet:
dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN

Reference

SDK Examples

Explore full transaction flows, including pool initialization, swaps, liquidity, and more.

SDK Reference

Access the full method map, PDA helpers, and fee helpers for DBC.

Testing The SDK

The local package scripts use pnpm in the repository root and package scripts in packages/dynamic-bonding-curve.
cd packages/dynamic-bonding-curve
pnpm install
pnpm run build
pnpm run check-types
pnpm test
Some tests depend on local validator fixtures and deployed program artifacts. For application integrations, simulate transactions and test on devnet before mainnet.

Faucets

Devnet Faucet

Request test SOL for devnet integration testing.