How to assign a unique crypto deposit address to each user
A step-by-step look at giving each user a dedicated, permanent crypto deposit address, matching incoming payments to the right account, and getting notified on arrival.
POST/api/v1/deposit-addresses
{ "reference": "user_12345" }
A permanent address for that user
0x9c1E…b27A · pays only you
POST your-server/webhooks
"type": "payment.confirmed"
"reference": "user_12345"
The short answer
To give each user a unique crypto deposit address, request one address per user keyed to your own reference — usually their user ID — and store it against their account. Because the address is dedicated to that one user, any deposit to it is automatically attributable to them, with no memo or tag for the customer to get wrong. With a permanent address, it never changes, so they can reuse it for every top-up.
Why a shared address does not work
The naive approach — one address everyone pays — breaks the moment two users pay at once: you can see money arrived, but not who sent it. Chains do not carry your user ID. Teams then bolt on memos or reference fields and discover customers forget them, mistype them, or their wallet drops them. A unique address per user removes the problem by design: the address is the attribution.
The three steps
- 1. Issue once per user. On signup (or first deposit), request an address with a reference you choose — your user ID is ideal. Store the returned address on the user record.
- 2. Show it as their deposit address. Display it, with a QR code, as the place that user funds their account. Since it is permanent, they can save it.
- 3. React to arrivals. When a payment to that address is detected and confirmed, credit the right user in your ledger — you already know who they are from the address.
Make issuance idempotent
Network calls fail and users double-click. If address issuance is idempotent on your reference, asking for user 1234’s address twice returns the same address both times instead of minting a second one. That one property removes a whole class of bugs — duplicate addresses, split balances, confused reconciliation — so lean on it: always issue by a stable reference, never by counting.
Reconcile automatically
Because every deposit lands on a distinct, user-owned address, reconciliation is a lookup, not a guess. A webhook fires when funds arrive and again when they confirm; you map the address back to the user and update their balance. No manual matching, no asking customers which payment was theirs. The actual funds, meanwhile, collect to the treasury wallet you control — the user’s address can pay out nowhere else.
Questions on this topic
Frequently asked
3 questions
direct answers
How do I give each user a unique crypto deposit address?
Call your deposit-address provider once per user with a reference you control — typically your internal user ID — and store the address it returns against that user. From then on, anything sent to that address is attributable to that user. A good API is idempotent on the reference, so asking twice returns the same address rather than issuing a duplicate.
How do I know which user a payment belongs to?
Because each address is dedicated to one user, the address itself is the identifier. When a payment is detected, you look up which user that address was issued to — no memo, tag, or reference field for the customer to get wrong. This is the main reason per-user addresses beat a single shared address.
Does each user address expire or change?
With a permanent-address model, no. The address is stable for the life of the user’s account, so they can save it and reuse it for every top-up. That is what makes it suitable as a standing deposit destination rather than a one-time checkout address.
Read on, or try it with test tokens
Create an account, generate a test key and pay a test invoice. The same code takes real payments once you switch to a live key.
Walletspine is live on BNB Smart Chain and Ethereum, with USDT and USDC on both.
- 1
Create an account
free to open
- 2
Generate a test key
sk_test_… · test networks
- 3
Pay a test invoice
test tokens, worth nothing
- 4
Switch to a live key
settles to your wallet
Live onBNB Smart ChainEthereum
More in Developers
7 min read
Building your own crypto deposit system vs using infrastructure
Rolling your own deposit system means owning key management, reorg handling, gas and sweeping — forever. A clear-eyed look at build vs buy for crypto deposits.
Read the post7 min read
How to give your users their own crypto wallet addresses
Hand every user a permanent address the moment they sign up, with funds that can only ever reach a wallet you control. The wallet layer, without holding keys for anyone.
Read the post