Reference
Vaults and deposits
Connecting a wallet assigns you one of Unlockable’s deposit vaults. Anything sent to it credits your account.
The deposit modal shows the vault address and a QR code. The app watches that vault’s balance and credits your account when a deposit lands: USDG credits your cash balance, and stock tokens credit that token’s deposited balance.
Detection is automatic#
Deposits are picked up as soon as they confirm on Robinhood Chain, usually within a few seconds, and every credit lands in the activity ledger with its asset and amount. If a transfer has confirmed but the balance has not moved, the deposit dialog’s check can be run again on demand.
const baseline = await provider.request({
method: "eth_getBalance",
params: [vault, "latest"],
});
// after the user sends funds
const received = next - baseline;
if (received > 0) credit(account, received);