Route a job in three calls

The @quiverdepin/sdk package wraps the Quiver backend API. Read the live index with index(), get a best-path quote with route(), and fetch alternatives with routeTop(). On-chain job execution (submit() / status()) ships in Phase 1.

View on GitHub ↗
Install
npm install @quiverdepin/sdk
Usage
import { QuiverClient } from "@quiverdepin/sdk";

const quiver = new QuiverClient({ baseUrl: "http://localhost:3001" });

// 1. Live price index (optional filters)
const { offers } = await quiver.index({ gpuClass: "H100", region: "US" });

// 2. Best-path route (live quote, not a job run yet)
const best = await quiver.route({
  gpuClass: "H100",
  durationHours: 5,
  reliabilityFloor: 0.85,
});
console.log(best.offer.source, best.estimatedTotalUsd);

// 3. Top-N alternatives for the UI
const { results } = await quiver.routeTop({ gpuClass: "A100", durationHours: 2 }, 5);

// submit()/status() arrive with the escrow program (Phase 1).
← Back to DocsTry it in the UI →