Get Deposit Address
Description
Retrieves the deposit address for the specified asset and chain. If no available address exists, an address allocation may be triggered. This interface does not merely read existing addresses. Failure to retrieve or allocate will return the corresponding business error.
HTTP Request
- POST
/api/v3/supplement/get_deposit_address - Rate Limit: 10 requests per second per UID
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
coin | string | Yes | Asset code. |
network_name | string | No | Chain name. For multi-chain assets, pass in via asset configuration. |
Response Parameters
Response outer structure:
| Field | Type | Description |
|---|---|---|
code | integer | Business status code; 0 indicates success, other values refer to error codes at the end. |
message | string | Result explanation. Success example is success |
data | object/null | Returns business data of the request upon success, see the table below. Failure returns null. |
extras | object/null | extended fields. Original example is null, specific structure is not defined and pending confirmation. |
Data fields for internal business: amounts and fees use decimal strings. Int64 uses JSON string, int32 uses JSON integer.
| Field | Type | Description |
|---|---|---|
coin | string | Asset code. |
address | string/null | Deposit address. The interface will retrieve or allocate an address as needed. When no address object is obtained, a business error (e.g., 20845) will be returned. It is not permissible to interpret a null value in this field as "not yet allocated". |
memo | string/null | Deposit memo/tag. If no memo is required, it should be an empty string or null. |
Request Example
POST /api/v3/supplement/get_deposit_address HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-api-key: <your_api_key>
ex-timestamp: <current_unix_timestamp_ns>
ex-nonce: <unique_random_hex>
ex-signature: <your_signature>
ex-client-type: API
{
"coin": "usdt",
"network_name": "trc20"
}
Response Example
{
"code": 0,
"message": "success",
"data": {
"coin": "usdt",
"address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"memo": ""
},
"extras": null
}