Skip to main content

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​

FieldTypeRequiredDescription
coinstringYesAsset code.
network_namestringNoChain name. For multi-chain assets, pass in via asset configuration.

Response Parameters​

Response outer structure:

FieldTypeDescription
codeintegerBusiness status code; 0 indicates success, other values refer to error codes at the end.
messagestringResult explanation. Success example is success
dataobject/nullReturns business data of the request upon success, see the table below. Failure returns null.
extrasobject/nullextended 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.

FieldTypeDescription
coinstringAsset code.
addressstring/nullDeposit 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".
memostring/nullDeposit 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
}