Guides

How to give every user their own crypto deposit address

1 December 2026 · 3 min read

If customers send crypto to your app, you need to know who sent what. The cleanest answer, and the one exchanges use, is to give every customer their own deposit address. Money that arrives at that address belongs to that customer, with no memos to forget and no amounts to match.

Why one address per customer

  • No guesswork. A shared address forces customers to add a memo or send an exact amount. Some forget, and every forgotten memo becomes a support ticket.
  • Top up any time. The address stays the customer's, so they can save it in their wallet or exchange and pay whenever they like.
  • Clean records. Every deposit is already tagged with the customer, which makes reconciliation and accounting simple.

How it works safely: HD wallets

You don't want thousands of separate private keys on your web server. Hierarchical deterministic (HD) wallets solve this. One seed phrase produces a master key, and from its public half (the xpub) you can derive as many addresses as you like, without any private key at all.

So the safe setup is:

  1. The seed phrase and private keys live in one place you control, used only to sign outgoing transactions.
  2. Your application only has public keys, so it can create and watch addresses but can never move funds.
  3. Each customer gets the next address in the sequence, and you store which index belongs to whom.

That's how the BlocksReader setup works. The BlocksReader Signer creates your wallet on your own server and uploads only public keys. The API derives addresses from them, so neither your web app nor BlocksReader can spend anything. Solana and TON work a little differently: your signer creates a pool of addresses in advance and registers them, and each customer gets the next one. The private keys still stay with you.

Creating an address

One request per customer and network. ref is your own customer id:

bash
curl https://api.blocksreader.com/v1/addresses \
  -H "Authorization: Bearer $BLOCKSREADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "chain": "bsc", "ref": "user_1042" }'
json
{
  "success": true,
  "data": {
    "id": "adr_7Kq2mZp9XbR4tVnW",
    "chain": "bsc",
    "address": "0x5b1c...9e2f",
    "ref": "user_1042",
    "livemode": false
  }
}

Store the id and address on the customer. Create it the first time they open your deposit screen, not at signup, so you only create addresses people actually use.

Which networks need what

  • EVM chains (Ethereum, BNB Chain, Polygon, Base, Arbitrum, Optimism, Avalanche and others): one address works for the native coin and every token on that chain, including USDT and USDC.
  • Tron: one address receives TRX and TRC-20 tokens such as USDT.
  • Bitcoin, Litecoin, Dogecoin: a fresh address per customer; the same address can be paid many times.
  • XRP and TON: deposits can also carry a destination tag (XRP) or memo (TON). When the address you create comes with a destination_tag, show it next to the address clearly, because an exchange withdrawal sent without it can't be matched automatically.

Knowing when money arrives

Creating addresses is half the job. The other half is watching every block for payments to them, waiting for confirmations and handling reorgs. With BlocksReader you register a webhook and receive deposit.confirmed with the ref you set, so you know which customer to credit:

json
{
  "type": "deposit.confirmed",
  "data": { "chain": "bsc", "address": "0x5b1c...9e2f", "tx_hash": "0xab...", "amount": "150", "asset": "0x55d398326f99059ff775485246999027b3197955", "ref": "user_1042", "confirmations": 1 }
}

Credit once per (chain, tx_hash, address), because each deposit is announced at 1 and again at 3 confirmations. Our guide on crediting deposits exactly once covers that in detail.

Collecting the funds

With one address per customer, your money ends up spread over many addresses. Sweeps collect it into one wallet automatically, signed by your own signer, with a gas tank address that tops up network fees for token sweeps. You set the rules once in the dashboard.

You can try all of this, address creation, simulated deposits and webhooks, for free in test mode.