Skip to content

For AI agents

Use the machine-readable artifacts instead of scraping rendered HTML:

Install the skill

mkdir -p .claude/skills/silentswap-integration/references
curl -fsSL https://docs.silentswap.com/skill/SKILL.md \
  -o .claude/skills/silentswap-integration/SKILL.md
curl -fsSL https://docs.silentswap.com/skill/references/complete-example.ts \
  -o .claude/skills/silentswap-integration/references/complete-example.ts

For Codex, place the same folder under .agents/skills/silentswap-integration.

Three invariants

  1. Render every output, amount, fee, and expiry before calling placeOrder(quote). V3 has no authorization-signing or confirmation ceremony.
  2. Production baseUrl defaults to https://api.silentswap.com. Override it only for tests or self-hosted deployments.
  3. Treat COMPLETED, FAILED, and ABORTED as the statuses that close the SDK watcher. DROPPED is resumable when a late deposit lands, so keep watching it. Always release the unsubscribe function when its owner unmounts.

Type-check the real package

import { createSilentSwapClient, type PrivateQuote } from '@silentswap/sdk';
 
const client = createSilentSwapClient();
declare const quote: PrivateQuote;
 
client.placeOrder(quote);