Create Deposit Address
Creates a deposit address for one account on a chosen network. dchain_id is required; an optional expired_at gives the address an expiry.
/api/accounts/{account_id}/deposit_addressesAuth: Requiredexpired_at does not stop money arrivingIt is a shelf life for showing the address, not for the funds. The blockchain
address stays valid forever, and a deposit that arrives after expired_at is
credited normally.
What expiry actually does is stop the address being offered as active for new payments. So use it to rotate which address you display, not as a deadline you communicate to a customer — telling someone "pay before this time or lose the funds" would be wrong.
Request Body
dchain_idstringRequiredDchain id
expired_atstringOptional. The moment the address stops being offered for new payments, as an ISO 8601 timestamp. It does not limit the address itself — see above.
Response
201, with the address.
idnumberRequiredThe address's own id. A deposit references it as deposit_address_id.
asset_idstringRequiredAsset code.
dchain_idstringRequiredNetwork code.
account_idnumber | nullRequiredThe account this address belongs to. null on an address created together with an auto-conversion rule.
addressstringRequiredThe blockchain address to be paid at.
tagstring | nullRequiredDestination memo, on networks that use one.
expired_atstring | nullRequiredWhen the address stops being offered for new payments. Funds arriving after it are still credited.
updated_atstringRequiredWhen the record last changed.
created_atstringRequiredWhen the record was created.
Errors
Beyond the shared errors:
| Code | Meaning |
|---|---|
1001 | account_id is not yours, or dchain_id is missing or does not carry this account's asset |
2020 | This member has reached its deposit-address limit |
3036 | Address creation is temporarily switched off for the network the message names — retry later |
3009 | The core is in maintenance — retry later |