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
| Field | Type | Required | Description |
|---|---|---|---|
coin | string | Yes | Asset code. |
address | string | Yes | Withdrawal address. For in-platform transfer, it is the recipient identifier |
amount | string | Yes | withdrawal amount, decimal string |
fee | string | Yes | Client-confirmed fee. Server will re-verify |
withdraw_order_id | string | Yes | Client withdrawal order ID, used for idempotency validation. |
type | integer | No | Withdrawal 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_name | string | Conditionally required | Chain 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. |
memo | string | Conditionally required | Memo/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. |
mark | string | No | user note |
white_id | string | No | Whitelist address ID. |
name | string | No | API notes. |
num_open_id | string | No | In-house transfer compatibility flag |
customer_type | integer | No | VASP 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_name | string | Corporate VASP cases | corporate legal name |
payee_customer_first_name | string | VASP cases | recipient name |
payee_customer_last_name | string | VASP cases | recipient surname |
payee_platform_name | string | VASP cases | Collection platform name |
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 |
|---|---|---|
withdrawId | string/null | Withdrawal record ID, protobuf int64 output as string. |
fee | string | actual on-chain withdrawal fee. Mutually exclusive with transferId |
transferId | string | Internal 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
}