HD Wallet Derivation: Why Custody Platforms Need It at Scale

HD Wallet Derivation: Why Custody Platforms Need It at Scale

Crypto APIs Team

Sep 14, 2026 • 5 min

HD (hierarchical deterministic) wallet derivation generates unlimited deposit addresses from a single extended public key (xPub), so a platform can assign every user a unique address without holding a separate private key per account. Custody platforms need it at scale because manual key management does not survive millions of addresses: derivation, blockchain sync, collision avoidance, and reconciliation all have to be automated. Crypto APIs derives and syncs addresses from an xPub without requiring you to run full nodes.

Custody platforms cannot issue deposit addresses through manual key management

UniCredit is building institutional crypto trading and custody infrastructure, according to Cointelegraph. That signals rising demand from traditional finance for custody services. It also surfaces an infrastructure problem the headline does not mention: how does an institution give thousands or millions of clients their own deposit addresses without turning key management into an operational hazard.

The naive approach is to generate one keypair per user and store the private key. That does not scale. Every new key is a new secret to secure, back up, rotate, and audit. Lose one and you lose the funds behind it. HD wallet derivation removes the private key from the address-generation step entirely. You keep one master private key offline and derive an unlimited tree of addresses from a public parent.

How it works

HD wallets follow the BIP-32, BIP-39, and BIP-44 standards. A single seed produces a master key, and from that master key you derive child keys along a path such as m/44'/60'/0'/0/0. The important property for deposit platforms: an extended public key can derive all the child public keys, and therefore all the receiving addresses, without ever touching a private key.

That means your signing infrastructure stays isolated. The system that issues deposit addresses holds only the xPub. The system that signs withdrawals holds the private material, on hardware or in a separate boundary. Address issuance and spending are decoupled.

Deriving an address is arithmetic. Knowing whether that address has received funds is not. Each derived address has to be watched on-chain, which is where node access and indexing come in. Crypto APIs exposes HD Wallets Management so you derive and register addresses against an already-indexed backend rather than running and syncing your own full nodes across every chain.

To derive addresses from an xPub without registering them for tracking, there is a stateless utility endpoint:

GET https://rest.cryptoapis.io/utils/{blockchain}/{network}/xpubs/{extendedPublicKey}/derive-addresses
Header: X-API-Key: <your key>

To derive addresses and register them so the backend indexes and tracks them, use the derive-and-sync endpoints per chain family:

POST https://rest.cryptoapis.io/hd-wallets/utxo/{blockchain}/{network}/{extendedPublicKey}/addresses/derive-and-sync
POST https://rest.cryptoapis.io/hd-wallets/evm/{blockchain}/{network}/{extendedPublicKey}/addresses/derive-and-sync

Once addresses are synced, you can read balances and transactions at the wallet level rather than iterating address by address:

GET https://rest.cryptoapis.io/hd-wallets/evm/{blockchain}/{network}/{extendedPublicKey}/addresses
GET https://rest.cryptoapis.io/hd-wallets/evm/{blockchain}/{network}/{extendedPublicKey}/transactions

Why it matters

Four operational problems appear the moment you move past a few hundred addresses.

Derivation index management. Every deposit address maps to an index on a derivation path. If two processes hand out the same index, two users share an address, and you can no longer attribute an incoming deposit to a single account. You need a single source of truth for the next unused index and a way to advance it atomically.

Address refresh and the gap limit. UTXO chains follow a convention: wallets stop scanning after a run of unused addresses, commonly 20. If you issue addresses faster than they are used, funds sent to an address beyond the gap limit can go unseen until the wallet is rescanned. Derive-and-sync registers each address explicitly, so tracking does not depend on a scanning heuristic.

Collision avoidance. At millions of addresses, the reconciliation cost of a mistaken reuse is real. Deriving from a deterministic path with a controlled index counter removes duplication by construction rather than by luck.

Reconciliation. Finance and compliance teams need to prove which internal account owns every on-chain balance. HD derivation gives you a deterministic map from index to address, so reconciliation is a lookup, not a search. Pairing derived addresses with Blockchain Events webhooks lets you credit deposits on confirmation instead of polling.

Common misconceptions

"An xPub is a secret." It is not a signing key, but it is not harmless either. Anyone holding the xPub can compute every address in the wallet and therefore observe the full balance and transaction graph. Treat it as sensitive for privacy reasons even though it cannot spend.

"HD wallets mean you do not need nodes." Derivation needs no node. Knowing what happened to a derived address absolutely does. Something has to read the chain. The choice is between running that infrastructure yourself or consuming it as a service.

"One xPub covers every chain." Derivation paths and address encodings differ. Bitcoin, Ethereum, Tron, and others use different coin types under BIP-44 and different address formats. A production wallet manages an xPub per chain family, not one global key.

"Deriving an address means it is monitored." Stateless derivation returns an address string and nothing else. It will not appear in any tracked set until you register it. That is why derive-and-sync exists as a distinct call from the plain derive utility.

Frequently asked questions

What is the difference between an xPub and a private key?

A private key can sign transactions and move funds. An xPub can only derive public addresses beneath it. Deposit platforms distribute addresses from the xPub while keeping the private key isolated for signing.

Do I need to run full nodes to use HD wallet derivation?

No node is required to compute addresses from an xPub. A node or an indexed backend is required to detect deposits to those addresses. Crypto APIs provides the indexed backend so you derive, sync, and read without operating nodes.

What is the gap limit and why does it matter?

The gap limit is the number of consecutive unused addresses a wallet scans before stopping, often 20 on UTXO chains. Issuing addresses past that limit without explicit registration can leave deposits undetected until a rescan.

Institutional custody is, underneath the licensing and the branding, an address-management problem. Whoever builds it has to derive uniquely, watch reliably, and reconcile provably across every chain they support. HD wallet derivation is the mechanism that makes those three things hold at a scale where manual key handling would break.

Infrastructure optimized for growth

100+

Networks Supported

25ms

Avg Processing Time

25,000+ rq/s

Enterprise-ready

100+ TB

of Big Data

Related articles

Share