Asset API
AssetsPrivateApi
POST Create Normal Withdrawal Order
POST /api/v1/private/assets/createNormalWithdraw
Body Request Parameters
Request Parameters
body
body
No
None
Response Example
200 Response
Response
200
Default response
POST Create Cross-Chain Withdrawal Order
POST /api/v1/private/assets/createCrossWithdraw
Body Request Parameters
Request Parameters
body
body
No
None
Response Example
200 Response
Response
200
Default response
GET User's Normal Withdrawable Amount
GET /api/v1/private/assets/getNormalWithdrawableAmount
Request Parameters
address
query
string
Yes
User address
Response Example
200 Response
Response
200
Default response
GET Get Normal Withdrawal Orders by Account ID and Withdrawal ID
GET /api/v1/private/assets/getNormalWithdrawById
Request Parameters
accountId
query
string
No
Account ID
normalWithdrawIdList
query
string
No
Withdrawal ID
Response Example
200 Response
Response
200
Default response
GET Get Information Required for Cross-Chain Withdrawal Signature
GET /api/v1/private/assets/getCrossWithdrawSignInfo
Request Parameters
chainId
query
string
No
Chain ID
amount
query
string
No
Withdrawal amount
Response Example
200 Response
Response
200
Default response
GET Get Cross-Chain Withdrawal Orders by Account ID and Withdrawal ID
GET /api/v1/private/assets/getCrossWithdrawById
Request Parameters
accountId
query
string
No
Account ID
crossWithdrawIdList
query
string
No
Withdrawal ID
Response Example
200 Response
Response
200
Default response
GET Aggregate Query of All Deposit and Withdrawal Order Records
GET /api/v1/private/assets/getAllOrdersPage
Request Parameters
accountId
query
string
No
Account ID
startTime
query
string
No
Start time, Unix time in seconds
endTime
query
string
No
End time, Unix time in seconds
chainId
query
string
No
Chain ID
typeList
query
string
No
Order type list
size
query
string
No
Number of items per page. Must be > 0 and <= 100.
offsetData
query
string
No
Offset for page retrieval. If not provided, returns first page
Response Example
200 Response
Response
200
Default response
Data Models
Asset Order paginated Response
code
string
false
none
Status code
Returns "SUCCESS" for success, otherwise it's a failure.
data
false
none
Generic paginated return
errorParam
object
false
none
Error parameter information
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Asset Order paginated Response Data
dataList
false
none
List of data
nextPageOffsetData
string
false
none
Offset for next page
Empty string when there are no further pages.
Asset Order Data
orderId
string(int64)
false
none
Order ID
time
string(int64)
false
none
Order creation time
type
string
false
none
Order type
status
integer(int32)
false
none
Order status
amount
string
false
none
Order amount
fee
string
false
none
Order fee
txId
string
false
none
Chain tx_id
chain
string
false
none
Chain
address
string
false
none
Address
coin
string
false
none
Coin
chainId
string
false
none
Chain ID
transferSenderAccountId
string
false
none
Transfer out account ID
transferReceiverAccountId
string
false
none
Transfer in account ID
Enum Values
type
UNKNOWN_ORDER_TYPE
type
ORDER_TYPE_NORMAL_DEPOSIT
type
ORDER_TYPE_CROSS_DEPOSIT
type
ORDER_TYPE_NORMAL_WITHDRAW
type
ORDER_TYPE_CROSS_WITHDRAW
type
ORDER_TYPE_FAST_WITHDRAW
type
ORDER_TYPE_TRANSFER_IN
type
ORDER_TYPE_TRANSFER_OUT
type
UNRECOGNIZED
List Cross Withdraw Response
code
string
false
none
Status code
data
false
none
Correct response data
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
List Cross Withdraw Response Data
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
ETH address for withdrawal, may differ from the account's ETH address.
erc20Address
string
false
none
L1 ERC20 contract address for the withdrawn asset
lpAccountId
string(int64)
false
none
LP account ID for L2 receiving user transfers
lpAccountL2Key
string(int64)
false
none
L2 key for the receiving account
clientCrossWithdrawId
string
false
none
Client-defined ID for idempotent checks
fee
string
false
none
Transaction fee
chainId
string
false
none
Chain ID for withdrawal
l2Nonce
string(int64)
false
none
L2 signature nonce. First 32 bits of sha256(client_withdraw_id)
l2ExpireTime
string(int64)
false
none
L2 signature expiration time. Unix time in hours, must be at least 24 hours after order creation.
l2Signature
false
none
L2 signature information
extraType
string
false
none
Additional type for upper-layer business usage
extraDataJson
string
false
none
Extra data, JSON format, defaults to empty string.
status
string
false
none
Normal withdrawal order status
collateralTransactionId
string
false
none
Related collateral detail ID. Exists when status=SUCCESS_XXX/FAILED_L2_REJECTED
censorTxId
string(int64)
false
none
Censorship processing sequence number. Exists when status=SUCCESS_XXX/FAILED_CENSOR_FAILURE/FAILED_L2_REJECTED
censorTime
string(int64)
false
none
Censorship processing time. Exists when status=SUCCESS_XXX/FAILED_CENSOR_FAILURE/FAILED_L2_REJECTED
censorFailCode
string
false
none
Censorship failure error code. Exists when status=FAILED_CENSOR_FAILURE
censorFailReason
string
false
none
Censorship failure reason. Exists when status=FAILED_CENSOR_FAILURE
l2TxId
string(int64)
false
none
L2 transaction ID. Exists when status=SUCCESS_XXX/FAILED_CENSOR_FAILURE/FAILED_L2_REJECTED
l2HandleTime
string(int64)
false
none
L2 processing time. Exists when status=SUCCESS_L1_CONFIRMING/SUCCESS_L1_WITHDRAWING/SUCCESS_L1_COMPLETED/FAILED_L2_REJECTED
l2RejectCode
string
false
none
L2 reject error code. Exists when status=FAILED_L2_REJECTED
l2RejectReason
string
false
none
L2 reject reason. Exists when status=FAILED_L2_REJECTED
l1ConfirmedTx
false
none
L1 transaction information
l1ConfirmedTime
string(int64)
false
none
L1 transaction confirmation time
l1CompletedTx
false
none
L1 transaction information
l1CompletedEthAddress
string
false
none
L1 withdrawal completion ETH address
l1CompletedTime
string(int64)
false
none
L1 withdrawal completion time
l1RejectedReasonCode
string
false
none
L1 rejection reason code
l1RejectedReasonMsg
string
false
none
L1 rejection reason message
riskSignature
false
none
L2 signature information
transferOutId
string(int64)
false
none
Transfer out order ID
createdTime
string(int64)
false
none
Creation time
updatedTime
string(int64)
false
none
Update time
Enum Values
status
CROSS_WITHDRAW_UNKNOWN
status
CROSS_WITHDRAW_PENDING_RISK_CHECKING
status
CROSS_WITHDRAW_PENDING_CHECKING
status
CROSS_WITHDRAW_SUCCESS_SUBMIT_CENSOR
status
CROSS_WITHDRAW_PENDING_CENSOR_CHECKING_ACCOUNT
status
CROSS_WITHDRAW_PENDING_CENSORING
status
CROSS_WITHDRAW_PENDING_L2_APPROVING
status
CROSS_WITHDRAW_PENDING_L1_SUBMIT
status
CROSS_WITHDRAW_PENDING_L1_CONFIRMING
status
CROSS_WITHDRAW_SUCCESS
status
CROSS_WITHDRAW_FAILED_RISK_CHECK_FAILURE
status
CROSS_WITHDRAW_FAILED_TRANSFER_REJECTED
status
CROSS_WITHDRAW_FAILED_CENSOR_CHECKING_ACCOUNT_REJECTED
status
CROSS_WITHDRAW_FAILED_CENSORING
status
CROSS_WITHDRAW_FAILED_L2_REJECTED
status
CROSS_WITHDRAW_FAILED_L1_SUBMIT_REJECTED
status
CROSS_WITHDRAW_FAILED_L1_REJECTED
status
CROSS_WITHDRAW_FAILED_USER_BALANCE_NOT_ENOUGH
status
UNRECOGNIZED
L1 transaction information
hash
string
false
none
Transaction hash
index
integer(int32)
false
none
Index of the tx hash
time
string(int64)
false
none
Tx chain timestamp, in milliseconds
blockHeight
string(int64)
false
none
Block height of the tx
L2 signature
r
string
false
none
Bigint for hex string
s
string
false
none
Bigint for hex string
v
string
false
none
Bigint for hex string
Get Cross Withdraw Sign Response
code
string
false
none
Status code
Returns "SUCCESS" for success, otherwise it's a failure.
data
false
none
Get information required for cross-chain withdrawal signature - Response
errorParam
object
false
none
Error parameter information
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Get Cross Withdraw Sign Response Data
lpAccountId
string
false
none
LP account ID for L2 receiving user transfers
crossWithdrawL2Key
string
false
none
L2 key for fast withdrawal account
crossWithdrawMaxAmount
string
false
none
Maximum amount for fast cross-chain withdrawal
fee
string
false
none
Transaction fee
Normal Withdraw List Response
code
string
false
none
Status code
Returns "SUCCESS" for success, otherwise it's a failure.
data
false
none
Correct response data
errorParam
object
false
none
Error parameter information
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Normal Withdrawal Response Data
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
ETH address for withdrawal, may differ from the account's ETH address.
clientWithdrawId
string
false
none
Client-defined ID for idempotent checks
l2Nonce
string(int64)
false
none
L2 signature nonce. First 32 bits of sha256(client_withdraw_id)
l2ExpireTime
string(int64)
false
none
L2 signature expiration time. Unix time in hours, must be at least 24 hours after order creation.
l2Signature
false
none
L2 signature information
status
string
false
none
Normal withdrawal order status
tradeWithdrawId
string(int64)
false
none
Corresponding trading service withdraw order ID
riskSignature
false
none
L2 signature information
l1ConfirmedTx
false
none
L1 transaction information
l1ConfirmedTime
string(int64)
false
none
L1 transaction confirmation time
l1CompletedTime
string(int64)
false
none
L1 withdrawal completion time
createdTime
string(int64)
false
none
Creation time
updatedTime
string(int64)
false
none
Update time
Enum Values
status
NORMAL_WITHDRAW_UNKNOWN
status
NORMAL_WITHDRAW_PENDING_RISK_CHECKING
status
NORMAL_WITHDRAW_PENDING_TRADE_PROCESSING
status
NORMAL_WITHDRAW_PENDING_L2_APPROVING
status
NORMAL_WITHDRAW_PENDING_L1_CONFIRMING
status
NORMAL_WITHDRAW_PENDING_L1_WITHDRAWING
status
NORMAL_WITHDRAW_SUCCESS_L1_COMPLETED
status
NORMAL_WITHDRAW_FAILED_RISK_CHECK_FAILURE
status
NORMAL_WITHDRAW_FAILED_CENSOR_FAILURE
status
NORMAL_WITHDRAW_FAILED_L2_REJECTED
status
UNRECOGNIZED
Get Normal Withdrawable Amount Response
| Name | Type Okay, continuing the translated documentation:
code
string
false
none
Status code
Returns "SUCCESS" for success, otherwise it's a failure.
data
false
none
Query normal withdrawable claim amount by user address - Response
errorParam
object
false
none
Error parameter information
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Normal Withdrawable Amount Response Data
amount
string
false
none
Withdrawable amount
Create Cross-chain Withdraw Response
code
string
false
none
Status code
Returns "SUCCESS" for success, otherwise it's a failure.
data
false
none
Create cross-chain withdrawal order - Response
errorParam
object
false
none
Error parameter information
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Create Cross-chain Withdrawal Response Data
crossWithdrawId
string(int64)
false
none
Cross-chain withdrawal order ID
Create Cross-chain Withdrawal Request
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Coin ID
amount
string
false
none
Withdrawal amount
ethAddress
string
false
none
Withdrawal address. If empty, withdraw to the corresponding address of the current account.
erc20Address
string
false
none
L1 ERC20 contract address for the withdrawn asset
lpAccountId
string
false
none
LP account ID for L2 receiving user transfers
clientCrossWithdrawId
string
false
none
Client-defined ID, used for signature & idempotent check. Must be filled.
expireTime
string(int64)
false
none
Expiration time
l2Signature
string
false
none
L2 signature
fee
string
false
none
Gas + fee obtained from front-end
chainId
string
false
none
Chain ID for withdrawal
mpcAddress
string
false
none
Which mpc address initiated the withdraw
mpcSignature
string
false
none
Signature of the mpc address to the withdraw field
mpcSignTime
string
false
none
mpc signature timestamp,unix timestamp in seconds
Create Normal Withdraw Response
code
string
false
none
Status code
Returns "SUCCESS" for success, otherwise it's a failure.
data
false
none
Create normal withdrawal order - Response
errorParam
object
false
none
Error parameter information
requestTime
string(timestamp)
false
none
Server request receive time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Create Normal Withdrawal Response Data
withdrawId
string(int64)
false
none
Withdrawal order ID
Create Normal Withdrawal Request
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Coin ID
amount
string
false
none
Withdrawal amount
ethAddress
string
false
none
Withdrawal address. If empty, withdraw to the corresponding address of the current account.
clientWithdrawId
string
false
none
Client-defined ID, used for signature & idempotent check. Must be filled.
expireTime
string(int64)
false
none
Expiration time
l2Signature
string
false
none
L2 signature
Last updated