> ## 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.

# Install

> Install @privata/wallet-api for JavaScript and TypeScript.

## 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

<CodeGroup>
  ```bash npm theme={null}
  npm install @privata/wallet-api
  ```

  ```bash pnpm theme={null}
  pnpm add @privata/wallet-api
  ```

  ```bash yarn theme={null}
  yarn add @privata/wallet-api
  ```

  ```bash bun theme={null}
  bun add @privata/wallet-api
  ```
</CodeGroup>

## Verify

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

## TypeScript

Types ship with the package. No separate `@types/...` needed.

```ts theme={null}
import type { Order, Quote, RefundPreference, OrderStatus } from "@privata/wallet-api";
```

## Bundle size

* ESM gzipped: \~12 kB
* Tree-shakable — import only what you use:
  ```ts theme={null}
  import { Privata } from "@privata/wallet-api";
  import { verifyWebhook } from "@privata/wallet-api/webhooks";
  ```
