Want Nullark inside your TypeScript app? Start here. SDK prepares recovery data, proofs, private-balance results, and unsigned deposit and withdrawal requests. Your app supplies proving files, chain reads, recovery storage, and wallet submission.

Install

These exact versions match tested starter. @nullark/sdk uses ESM and ships TypeScript declarations.

Tested starter

Starter follows one order:
  1. Create client with checked proving files and chain adapters.
  2. Create recovery key and prepare deposit.
  3. Save recovery key with encrypted envelope.
  4. Restore saved data before opening wallet.
  5. Submit unsigned deposit request through wallet layer.
  6. Read private balance after deposit appears onchain.
  7. Prepare bounded withdrawal.
  8. Reconcile original submission when receipt or wallet result stays uncertain.
Save-and-restore step comes before wallet submission. User leaves deposit flow with backup already tested by same client that created it. Build a complete SDK integration gives full path and starter code. API reference gives exact public methods, inputs, outputs, adapters, and setup helpers used by that path.

Pick your next page

Build complete flow

Run setup, deposit, backup, restore, balance, withdrawal, and reconciliation in order.

Set up client

Check proving files and connect required chain reads.

Prepare deposit

Create recovery data, proof, and unsigned deposit request.

Save and restore

Test backup roundtrip and read private balance.

Prepare withdrawal

Choose available note, set fee bounds, and build unsigned request.

Handle uncertain status

Check original operation before any new submission.

Read API reference

Find method signatures, result fields, adapter shapes, and common stops.

Who handles what

Keep recovery keys, private bundles, and proof witness data inside trusted client.