Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.privataswap.com/llms.txt

Use this file to discover all available pages before exploring further.

Requirements

  • Node.js ≥ 20.10 (or any modern runtime that supports fetch, AbortController, native EventSource).
  • Works in Node, Bun, Deno, Cloudflare Workers, React Native (with polyfill), browser (test keys only).

Install

npm install @privata/wallet-api

Verify

import { Privata } from "@privata/wallet-api";
console.log(Privata.VERSION);  // "1.1.0"

TypeScript

Types ship with the package. No separate @types/... needed.
import type { Order, Quote, RefundPreference, OrderStatus } from "@privata/wallet-api";

Bundle size

  • ESM gzipped: ~12 kB
  • Tree-shakable — import only what you use:
    import { Privata } from "@privata/wallet-api";
    import { verifyWebhook } from "@privata/wallet-api/webhooks";