DepositClient provides full deposit functionality without React. Use it for server-side scripts, Node.js backends, or custom UI frameworks.
DepositClient
Constructor Config
Methods
Notifications (Headless)
Track each deposit through its lifecycle without any UI. Pass theonDepositEvent
callback, or subscribe to the deposit:lifecycle event — both deliver the same
normalized DepositLifecycleEvent, with a stable id across phase transitions
(detected → processing → credited, or failed / below_threshold).
Fund from Wallet (Headless)
Let a user top up their deposit address from a connected browser wallet (MetaMask / Rabby / Phantom / any injected EIP-1193 or Solana wallet). The SDK discovers the wallet’s cross-chain balances, builds a plain transfer to the deposit address, and submits it through the wallet; the watcher then detects and sweeps it as usual. The browser wallet is a funding source only — it never becomes the Universal Account owner/signer. Balance discovery is zero-config (Particle’s hosted service — no Moralis key, proxy, or backend). Enable it on the client:Flow
Detection Utilities
Framework-agnostic helpers for discovering and connecting injected wallets:Balance discovery covers Ethereum, BNB Chain, Base, Arbitrum, and Solana. X Layer is not supported by the Moralis-backed service, so it is skipped during discovery — other supported chains are unaffected.
Transaction History
Query the Universal Account’s transaction history. Results are cached (30s TTL, LRU) to avoid redundant API calls when paginating.Page-Based Pagination
Filter by Token and Chain (Cursor-Based)
Single Transaction Lookup
Events
Subscribe to events usingon / off:
Event Reference
Next Steps
React SDK
DepositProvider, hooks, and UI components.
Reference
Types, constants, and advanced topics.
