DumpsterDumpster Docs
SDK

Installation

Install the Dumpster SDK and connect with DumpsterClient.

SDK

Install the SDK

Use DumpsterClient to load accounts, preview trades and build unsigned transactions.

Package install

npm install @dumpster-cash/dumpster-sdk@2.0.1

npm package

This guide targets the stable SDK 2.0.1 and its program IDs.

Packages imported by your application

These packages are SDK dependencies, not peer dependencies. Declare the ones your application imports directly in its own manifest:

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.wtf');
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