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.1This 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.jsRecommended 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 stateclient.preview.*for structured trade previewsclient.curve.*andclient.swap.*for instruction buildersclient.pda.*for raw and grouped PDA helpersclient.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.