Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt

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

Deregister a wallet

Deregistering a BYO wallet stops address monitoring and frees the wallet slot for reuse. No funds are affected — Prudra never held custody of the wallet, so deregistering is purely a monitoring change.
Dashboard support for BYO wallet deregistration is coming soon. Use the SDK or cURL to deregister wallets.

What deregistering does

When you deregister a BYO wallet:
  1. Address monitoring is stopped immediately
  2. No further deposit.success webhooks fire for this address
  3. The wallet slot is freed — you can register a new wallet on your plan
  4. Existing WalletTransaction and WalletBalance records are retained (read-only)
  5. The wallet ID becomes invalid for use in walletMiddleware

What deregistering does NOT do

  • It does not move, freeze, or affect funds in the wallet
  • It does not delete historical transaction records
  • It does not affect payments already processed through this wallet

Before deregistering

Ensure you have updated any walletMiddleware calls that reference this wallet ID. Requests hitting a middleware with a deregistered wallet ID return a 503 error.
// Remove or update before deregistering
app.use(walletMiddleware({ walletId: 'byw_clx1abc123' }));  // ← update this

Error handling

ErrorStatusCauseResolution
wallet-not-found404Wallet ID does not existCheck the wallet ID is correct
wallet-already-deregistered409Already deregisteredNo action needed