# @midnightntwrk/wallet-sdk-prover-client

> Client for interacting with the Midnight ZK proof generation service.

Latest version **1.2.3** (published 2026-06-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @midnightntwrk/wallet-sdk-prover-client
pnpm add @midnightntwrk/wallet-sdk-prover-client
yarn add @midnightntwrk/wallet-sdk-prover-client
bun add @midnightntwrk/wallet-sdk-prover-client
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2026-06-19 |
| First published | 2026-06-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 30.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Midnight Foundation |
| Maintainers | ntwrk-bot |

## Links

- npm: https://www.npmjs.com/package/@midnightntwrk/wallet-sdk-prover-client
- Repository: https://github.com/midnightntwrk/midnight-wallet
- Homepage: https://github.com/midnightntwrk/midnight-wallet#readme
- Issues: https://github.com/midnightntwrk/midnight-wallet/issues
- npm.io page: https://npm.io/package/@midnightntwrk/wallet-sdk-prover-client

## Dependencies (6)

- [effect](https://npm.io/package/effect.md) ^3.19.19
- [web-worker](https://npm.io/package/web-worker.md) ^1.5.0
- [@effect/platform](https://npm.io/package/@effect/platform.md) ^0.96.0
- [@midnight-ntwrk/zkir-v2](https://npm.io/package/@midnight-ntwrk/zkir-v2.md) ^2.1.0
- [@midnight-ntwrk/ledger-v8](https://npm.io/package/@midnight-ntwrk/ledger-v8.md) ^8.1.0
- [@midnightntwrk/wallet-sdk-utilities](https://npm.io/package/@midnightntwrk/wallet-sdk-utilities.md) ^1.2.0

## Recent versions

- 1.2.3 (latest) — 2026-06-19
- 2.0.0-canary.20261013150531-6289ea3 (canary) — 2026-10-13
- 1.2.4-canary.20261009161442-8f95733 (canary-v1) — 2026-10-09
- 2.0.0-canary.20261007114939-7ee351c (canary-v2) — 2026-10-07
- 2.0.0-rc.0 (rc) — 2026-09-24
- 2.0.0-beta.4 (beta) — 2026-09-24
- 2.0.0-canary.20261013132526-8a87477 — 2026-10-13
- 2.0.0-canary.20261012130426-60e35b6 — 2026-10-12
- 2.0.0-canary.20261006161905-56542fa — 2026-10-06
- 2.0.0-canary.20261006082857-3c6134f — 2026-10-06
- 1.2.4-canary.20261005170924-1c8b4e7 — 2026-10-05
- 1.2.4-canary.20260930095107-aae483d — 2026-09-30
- 1.2.4-canary.20260929170316-1583a02 — 2026-09-29
- 2.0.0-canary.20260928141213-d0f38b3 — 2026-09-28
- 2.0.0-canary.20260924122254-db9102e — 2026-09-24
- … 82 more at https://npm.io/package/@midnightntwrk/wallet-sdk-prover-client/versions

## README

# @midnightntwrk/wallet-sdk-prover-client

Client for interacting with the Midnight ZK proof generation service.

## Installation

```bash
npm install @midnightntwrk/wallet-sdk-prover-client
```

## Overview

This package provides a client for submitting transactions to a Proof Server that generates zero-knowledge proofs. It is
used to finalize shielded transactions by converting unproven transactions into proven ones.

## Usage

### Basic Usage

```typescript
import { HttpProverClient } from '@midnightntwrk/wallet-sdk-prover-client';

// Initialize the client with the Proof Server URL
const proverClient = new HttpProverClient({
  serverUrl: 'http://localhost:6300',
});

// Prove an unproven transaction
const provenTransaction = await proverClient.proveTransaction(unprovenTransaction);
```

### With Custom Cost Model

```typescript
const provenTransaction = await proverClient.proveTransaction(unprovenTransaction, customCostModel);
```

## API

### HttpProverClient

```typescript
class HttpProverClient {
  constructor(config: { serverUrl: string });

  proveTransaction<S extends Signaturish, B extends Bindingish>(
    transaction: Transaction<S, PreProof, B>,
    costModel?: CostModel,
  ): Promise<Transaction<S, Proof, B>>;
}
```

## Exports

### Default Export

- `HttpProverClient` - HTTP client for the Proof Server

### Effect Submodule (`/effect`)

Effect.ts-based implementation:

```typescript
import { ProverClient, HttpProverClient } from '@midnightntwrk/wallet-sdk-prover-client/effect';
```

## Error Handling

The client may throw the following errors:

- `ClientError` - Issues with the provided transaction or connection problems
- `ServerError` - Internal server errors or connection failures
- `InvalidProtocolSchemeError` - Invalid URL scheme in configuration

## License

Apache-2.0

---
_Source: https://npm.io/package/@midnightntwrk/wallet-sdk-prover-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
