Customer addresses
Call createWallet with a network, by its code or its id, the customer's external_id and the asset_ids to accept. It answers 201 with the address.
While the operator recovers the install's database after a restore, createWallet answers 503 with service_unavailable and creates nothing; so does a network the install does not run now. Retry later.
| Rule | Result |
|---|---|
One address per network and external_id | A second createWallet gets 409 with resource_conflict |
The same Idempotency-Key and body | The first response again, not a second address |
Each asset is active and allows deposit on that network | Otherwise 422 with asset_unavailable |
On Bitcoin every address has the install's one type: p2tr (the default), bech32 (P2WPKH) or p2sh (nested segwit, which any wallet can pay). listNetworks names it as the network's address_type. A legacy (P2PKH) address is never issued: its signature does not commit to the coin's amount, so a lying node could make the install pay the difference as fee. Payouts to legacy addresses work as usual.
Warning
Only assets in asset_ids are credited automatically. Another active asset of the network sent to the address stays there, and the operator is alerted: they either credit it to the customer or set it aside. A payment of a token the network has listed but not yet enabled is alerted once the operator enables it; one sent before the token was listed is not alerted. Once credited, the asset joins the address's asset_ids, and each payment of it arrives as a usual transaction.confirmed; transfers the install itself makes to the address, such as network-fee top-ups, are never credited to the customer. Anything else sent to the address is not credited.
An XRPL address has no account until a payment of at least the network's base reserve creates one, 1 XRP on mainnet when this was written. A smaller first payment fails on the network: the payer loses only the network fee, nothing arrives, and no event is sent. Ask payers to send at least the reserve first.
Earlier transactions
The install then reads the address's earlier transactions. A new address has none, unless the operator rebuilt the install from a seed an earlier install used: then the address's payments from before your createWallet are read too, and each arrives as a transaction.confirmed naming your new customer, though that customer never sent it. Ask your operator before you credit payments on an install rebuilt that way.
Find an address
listWallets with external_id returns a customer's addresses, one per network. getWallet returns one by its id. Wallet events lists every wallet.* event.