Skip to main content

DepositProvider

Wraps your app and manages the deposit lifecycle. Handles Auth Core context internally.

Config


useDeposit

Primary hook. Pass ownerAddress to trigger auto-connection and start watching for deposits.

Options

Return Value


useDepositContext

Access the full context including recovery and refund methods. Returns everything from useDeposit plus:

Extended Properties


useOnramp

Drive a fiat purchase (buy crypto with fiat via RampNow) from a fully custom UI. Returns nothing useful until onramp.enabled is set on the provider.

Return Value


Components

DepositWidget

Inline deposit UI with token selection, QR code, and activity feed.
When funding.enabled and/or onramp.enabled are set on the provider, DepositWidget automatically gains a “Receive | Fund | Buy” toggle — segments appear only for the features you enable, no extra props needed. Pass showBuy={false} to suppress the Buy tab.

DepositModal

Modal wrapper around DepositWidget. Accepts all DepositWidget props plus:

OnrampButton

Standalone “Buy” button for custom placement. Renders nothing when onramp is disabled. Must live inside a DepositProvider with onramp: { enabled: true }.

OnrampStatusToast

A small floating “purchase in progress / complete / failed” popup that persists even after the user switches tabs or closes the RampNow overlay. Mount it once near your app root — it portals to document.body and is driven by useOnramp status.
Order events only flow in mode: 'overlay'. A redirect tab has no postMessage channel back, so there’s nothing to track and the toast stays hidden.

RecoveryWidget

UI for scanning and recovering stuck funds.

RecoveryModal

Modal wrapper around RecoveryWidget. Accepts all RecoveryWidget props plus:

Next Steps

Core SDK

Headless DepositClient for non-React apps.

Reference

Types, constants, and advanced topics.