Skip to main content

Withdraw

Description​

Create on-chain withdrawal or in-platform transfer.

HTTP Request​

  • POST /api/v3/spot/wallet/withdraw
  • Rate Limit: 10 requests per second per UID

Request Parameters​

FieldTypeRequiredDescription
coinstringYesAsset code.
addressstringYesWithdrawal address. For in-platform transfer, it is the recipient identifier
amountstringYeswithdrawal amount, decimal string
feestringYesClient-confirmed fee. Server will re-verify
withdraw_order_idstringYesClient withdrawal order ID, used for idempotency validation.
typeintegerNoWithdrawal type. Values: 1 = internal transfer; 0 = on-chain withdrawal. Defaulting to 0 if not provided. Currently, only value 1 is recognized as internal transfer. All other integers are treated as on-chain withdrawal.
network_namestringConditionally requiredChain name. Required when performing on-chain withdrawals for multi-chain assets. Missing will return error code 21315. For in-app transfers, this field is not used.
memostringConditionally requiredMemo/tag for the receiving address. The target chain and address require memo/tag to be provided. Missing memo/tag returns error code 60056, incorrect format returns 60057. Length must not exceed 200 characters.
markstringNouser note
white_idstringNoWhitelist address ID.
namestringNoAPI notes.
num_open_idstringNoIn-house transfer compatibility flag
customer_typeintegerNoVASP customer type. Enum values: 0 = individual; 1 = enterprise (legal person). If not provided, defaults to 0 and does not need to explicitly send 0. Verified only when VASP information is required. When value is 1, legal_person_name must be provided. Any other integer is invalid.
legal_person_namestringCorporate VASP casescorporate legal name
payee_customer_first_namestringVASP casesrecipient name
payee_customer_last_namestringVASP casesrecipient surname
payee_platform_namestringVASP casesCollection platform name

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
withdrawIdstring/nullWithdrawal record ID, protobuf int64 output as string.
feestringactual on-chain withdrawal fee. Mutually exclusive with transferId
transferIdstringInternal transfer record ID. Mutually exclusive with fee, protobuf int64 output as string.

Request Example​

The address in the withdrawal example is for format demonstration only and must not be used for actual transfers. Please replace it with a verified receiving address. New orders use a new withdraw_order_id, while retries for the same order reuse the original value. Amount and fee must comply with real-time asset settings.

POST /api/v3/spot/wallet/withdraw 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",
"address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"amount": 10.5,
"fee": 1,
"type": 0,
"withdraw_order_id": "client-20261026-001"
}

Response Example​

The following is a structural example for successful scenarios. Business data is fictitious and does not represent real-time online results. The memo/tag field can be omitted. Empty fields are handled according to the parameter table description.

{
"code": 0,
"message": "success",
"data": {
"withdrawId": "1001",
"fee": "1"
},
"extras": null
}