Withdraw API
WithdrawPrivateApi
POST Create Withdrawal Order
POST /api/v1/private/withdraw/createWithdraw
Body Request Parameters
Request Parameters
body
body
No
none
Response Example
200 Response
Response
200
default response
GET Get Withdrawal Orders in Batch by ID
GET /api/v1/private/withdraw/getWithdrawById
Request Parameters
accountId
query
string
No
Account ID
withdrawIdList
query
string
No
Withdrawal order ID
Response Example
200 Response
Response
200
default response
Response Data Structure
GET Get Withdrawal Orders in Batch by Client ID
GET /api/v1/private/withdraw/getWithdrawByClientWithdrawId
Request Parameters
accountId
query
string
No
Account ID
clientWithdrawIdList
query
string
No
Withdrawal order ID
Response Example
200 Response
Response
200
default response
Response Data Structure
GET Get Available Withdrawal Amount
GET /api/v1/private/withdraw/getWithdrawAvailableAmount
Request Parameters
accountId
query
string
No
Account ID
coinId
query
string
No
Coin ID
Response Example
200 Response
Response
200
default response
GET Get Active Withdrawal Orders with Pagination
GET /api/v1/private/withdraw/getActiveWithdraw
Request Parameters
accountId
query
string
No
Account ID
size
query
string
No
Number of items to get. Must be greater than 0 and less than or equal to 100
offsetData
query
string
No
Pagination offset. If empty, get the first page
filterCoinIdList
query
string
No
Filter by withdrawal order with the corresponding collateral coinId, if empty, get all coinIds' withdrawal orders
filterStatusList
query
string
No
Filter by withdrawal order with the specified status, if empty, get all status' withdrawal orders
filterStartCreatedTimeInclusive
query
string
No
Filter by withdrawal order created after this time (inclusive), if empty or 0, start from the earliest
filterEndCreatedTimeExclusive
query
string
No
Filter by withdrawal order created before this time (exclusive), if empty or 0, end with the latest
Response Example
200 Response
Response
200
default response
Response Data Structure
Data Models
Withdrawal Response
code
string
false
none
Status code. "SUCCESS" if successful, otherwise it's a failure
data
false
none
Generic pagination response
errorParam
object
false
none
Parameter information in the error message
requestTime
string(timestamp)
false
none
Server request receiving time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call traceId
Withdrawal Data List
dataList
false
none
Data list
nextPageOffsetData
string
false
none
Offset for getting the next page. Empty string if there is no next page
Withdraw
Withdrawal Order
id
string(int64)
false
none
Withdrawal order ID
userId
string(int64)
false
none
User ID
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Collateral coin ID
amount
string
false
none
Withdrawal amount
ethAddress
string
false
none
Withdrawal address.
erc20Address
string
false
none
Withdrawal coin contract address
clientWithdrawId
string
false
none
Client defined ID, used for idempotent verification
riskSignature
false
none
L2 signature information
l2Nonce
string(int64)
false
none
L2 signature nonce. Take the first 32 bits of sha256(client_withdraw_id)
l2ExpireTime
string(int64)
false
none
L2 signature expiration time, in milliseconds. When generating/verifying the signature, the number of hours should be taken, i.e., l2_expire_time / 3600000
l2Signature
false
none
L2 signature information
extraType
string
false
none
Additional type, for use by upper-level services
extraDataJson
string
false
none
Additional data, JSON format, default is empty string
status
string
false
none
Withdrawal order status
collateralTransactionId
string(int64)
false
none
Associated collateral transaction ID. Exists when status=SUCCESS_XXX/FAILED_L2_REJECT/FAILED_L2_REJECT_APPROVED
censorTxId
string(int64)
false
none
Censor processing sequence number. Exists when status=SUCCESS_XXX/FAILED_CENSOR_FAILURE/FAILED_L2_REJECT/FAILED_L2_REJECT_APPROVED
censorTime
string(int64)
false
none
Censor processing time. Exists when status=SUCCESS_XXX/FAILED_CENSOR_FAILURE/FAILED_L2_REJECT/FAILED_L2_REJECT_APPROVED
censorFailCode
string
false
none
Censor failure error code. Exists when status=FAILED_CENSOR_FAILURE
censorFailReason
string
false
none
Censor failure reason. Exists when status=FAILED_CENSOR_FAILURE
l2TxId
string(int64)
false
none
L2 push transaction ID. Exists when censor_status=CENSOR_SUCCESS/L2_APPROVED/L2_REJECT/L2_REJECT_APPROVED
l2RejectTime
string(int64)
false
none
L2 rejection time. Exists when censor_status=L2_REJECT/L2_REJECT_APPROVED
l2RejectCode
string
false
none
L2 rejection error code. Exists when censor_status=L2_REJECT/L2_REJECT_APPROVED
l2RejectReason
string
false
none
L2 rejection reason. Exists when censor_status=L2_REJECT/L2_REJECT_APPROVED
l2ApprovedTime
string(int64)
false
none
L2 batch verification time. Exists when status=L2_APPROVED/L2_REJECT_APPROVED
createdTime
string(int64)
false
none
Creation time
updatedTime
string(int64)
false
none
Update time
Enum Values
status
UNKNOWN_WITHDRAW_STATUS
status
PENDING_CENSORING
status
SUCCESS_CENSOR_SUCCESS
status
SUCCESS_L2_APPROVED
status
FAILED_CENSOR_FAILURE
status
FAILED_L2_REJECT
status
FAILED_L2_REJECT_APPROVED
status
UNRECOGNIZED
L2 signature information
r
string
false
none
bigint for hex str
s
string
false
none
bigint for hex str
v
string
false
none
bigint for hex str
Get available withdrawal amount Response
code
string
false
none
Status code. "SUCCESS" if successful, otherwise it's a failure
data
false
none
Get available withdrawal amount - response
errorParam
object
false
none
Parameter information in the error message
requestTime
string(timestamp)
false
none
Server request receiving time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call traceId
Get available withdrawal amount Data
availableAmount
string(decimal)
false
none
Available amount
Withdraw List Response
code
string
false
none
Status code. "SUCCESS" if successful, otherwise it's a failure
data
false
none
Correct response data
errorParam
object
false
none
Parameter information in the error message
requestTime
string(timestamp)
false
none
Server request receiving time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call traceId
Create withdrawal order Response
code
string
false
none
Status code. "SUCCESS" if successful, otherwise it's a failure
data
false
none
Create withdrawal order - response
errorParam
object
false
none
Parameter information in the error message
requestTime
string(timestamp)
false
none
Server request receiving time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call traceId
<### Create withdrawal order response
withdrawId
string(int64)
false
none
Withdrawal order ID
Create withdrawal order request
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Coin ID
amount
string(decimal)
false
none
Withdrawal amount
ethAddress
string
false
none
Withdrawal address.
erc20Address
string
false
none
Withdrawal coin contract address
clientWithdrawId
string
false
none
Client defined ID, used for idempotent verification
riskSignature
string
false
none
Risk control signature
l2Nonce
string(int64)
false
none
L2 signature nonce. Take the first 32 bits of sha256(client_withdraw_id)
l2ExpireTime
string(int64)
false
none
L2 signature expiration time, in milliseconds. When generating/verifying the signature, the number of hours should be taken, i.e., l2_expire_time / 3600000
l2Signature
string
false
none
L2 signature
extraType
string
false
none
Additional type, for use by upper-level services
extraDataJson
string
false
none
Additional data, JSON format, default is empty string
Last updated