DumpsterDumpster Docs
SDK

Installation

Install @dumpster-cash/dumpster-sdk and start from the unified DumpsterClient surface.

SDK

Install the SDK once, then start from DumpsterClient

Most integrations should begin with DumpsterClient. It gives you one coherent surface for state loading, previews, instruction building, PDAs, and transaction assembly.

Package install

npm install @dumpster-cash/dumpster-sdk

npm package

Peer dependencies

npm install @coral-xyz/anchor @solana/web3.js @solana/spl-token bn.js

Recommended entry point

import { DumpsterClient } from '@dumpster-cash/dumpster-sdk';
import { Connection } from '@solana/web3.js';

const connection = new Connection('https://rpc.gorbagana.com');
const client = new DumpsterClient(connection);

What you get

  • client.accounts.* for loading curve, pool, fee, and workflow state
  • client.preview.* for structured trade previews
  • client.curve.* and client.swap.* for instruction builders
  • client.pda.* for raw and grouped PDA helpers
  • client.tx.* for unsigned transaction assembly with compute budget support

Lower-level surfaces

The package also exports raw PDA helpers, math helpers, instructions, IDLs, and program factories. Those are useful for indexers, simulations, and custom transaction assembly when the client surface is too high-level.

On this page