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.

Register a BYO wallet

Registering a BYO wallet tells Prudra to monitor an existing EVM address for incoming deposits. You provide the address, chain, and which tokens to monitor. Prudra sets up address activity monitoring and returns a wallet object you can use in walletMiddleware.
Dashboard support for BYO wallet registration is coming soon. Use the SDK or cURL to register wallets.

Parameters

ParameterTypeRequiredDescription
addressstringYesThe EVM wallet address to monitor (checksummed or lowercase)
chainChainYesThe chain this address lives on
supportedTokensToken[]YesTokens to monitor for incoming deposits
namestringNoHuman-readable label for this wallet

Registration status

After registration, the wallet status is "pending" while AML screening runs. Status values:
StatusMeaning
pendingAML screening in progress. Monitoring not yet active.
activeScreening passed. Address is being monitored for deposits.
rejectedAddress flagged during AML screening. Cannot be used.
Check the status by fetching the wallet:
curl https://api.prudra.dev/wallet-infra/byo-wallets/byw_clx1abc123 \
  -H "Authorization: Bearer prv_test_sk_..."

What happens after registration

  1. AML screening completes (typically within seconds)
  2. If passed, Prudra registers the address with its blockchain monitoring service
  3. The wallet status changes to active
  4. Any incoming transfers to the address are detected and a deposit.success webhook fires
  5. A WalletTransaction record is created for each deposit

Use the wallet in payMiddleware

Once status === 'active', use the wallet ID in walletMiddleware:
app.use(walletMiddleware({ walletId: 'byw_clx1abc123' }));
Payments made to your Prudra-protected endpoints will settle to this wallet address.

Error handling

ErrorStatusCauseResolution
byo-wallet-limit-reached429Plan limit exceededUpgrade plan or deregister an existing wallet
wallet-already-registered409Address already registeredCheck your existing wallets with GET /wallet-infra/byo-wallets
address-format-invalid422Not a valid EVM addressUse a checksummed or lowercase EVM address

Next steps