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-sdkPeer dependencies
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.com');
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.