Transfer API
TransferPrivateApi
POST Create Transfer Out Order
POST /api/v1/private/transfer/createTransferOut
Body Request Parameters
Request Parameters
body
body
No
none
Response Example
200 Response
Response Codes
200
default response
GET Get Transfer Out Orders by ID
GET /api/v1/private/transfer/getTransferOutById
Request Parameters
accountId
query
string
No
Account ID
transferOutIdList
query
string
No
Transfer out ID
Response Example
200 Response
Response Codes
200
default response
GET Get Available Withdrawal Amount
GET /api/v1/private/transfer/getTransferOutAvailableAmount
Request Parameters
accountId
query
string
No
Account ID
coinId
query
string
No
Coin ID
Response Example
200 Response
Response Codes
200
default response
GET Get Transfer In Orders by ID
GET /api/v1/private/transfer/getTransferInById
Request Parameters
accountId
query
string
No
Account ID
transferInIdList
query
string
No
Transfer In ID
Response Example
200 Response
Response Codes
200
default response
Data Models
Transfer In Response
code
string
false
none
Status code. "SUCCESS" for success, other values indicate failure.
data
false
none
Generic paginated response data
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request receiving timestamp
responseTime
string(timestamp)
false
none
Server response returning timestamp
traceId
string
false
none
Call trace ID
Transfer In Data List
dataList
false
none
Data list
nextPageOffsetData
string
false
none
Offset to retrieve the next page. If no next page data, the value will be an empty string
Transfer In
id
string(int64)
false
none
Transfer In order ID
userId
string(int64)
false
none
User ID
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Coin ID
amount
string
false
none
Transfer amount
senderAccountId
string(int64)
false
none
Sender Account ID
senderL2Key
string
false
none
Sender account L2 key. bigint for hex str
senderTransferOutId
string(int64)
false
none
Sender transfer out order ID
clientTransferId
string
false
none
Client defined ID. Used for idempotent checks and signature generation nonce
isConditionTransfer
boolean
false
none
Whether it is a conditional transfer
conditionFactRegistryAddress
string
false
none
Address of condition fact registry contract. Required when is_condition_transfer=true
conditionFactErc20Address
string
false
none
ERC20 address used to generate the condition fact. Required when is_conditional_transfer=true
conditionFactAmount
string
false
none
Amount used to generate condition fact. Required when is_conditional_transfer=true.
conditionFact
string
false
none
The conditional transfer fact. Required when is_condition_transfer=true
transferReason
string
false
none
Transfer reason
extraType
string
false
none
Additional type. Used by upper layer business
extraDataJson
string
false
none
Additional data in JSON format. Defaults to empty string
status
string
false
none
Transfer status
collateralTransactionId
string(int64)
false
none
ID of related collateral detail. Exists when status=SUCCESS_XXX/FAILED_L2_REJECT/FAILED_L2_REJECT_APPROVED
censorTxId
string(int64)
false
none
Censor processing sequence. 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
transferReason
UNKNOWN_TRANSFER_REASON
transferReason
USER_TRANSFER
transferReason
FAST_WITHDRAW
transferReason
CROSS_DEPOSIT
transferReason
CROSS_WITHDRAW
transferReason
UNRECOGNIZED
status
UNKNOWN_TRANSFER_STATUS
status
PENDING_CHECKING
status
PENDING_CENSORING
status
SUCCESS_CENSOR_SUCCESS
status
SUCCESS_L2_APPROVED
status
FAILED_CHECK_INVALID
status
FAILED_CENSOR_FAILURE
status
FAILED_L2_REJECT
status
FAILED_L2_REJECT_APPROVED
status
UNRECOGNIZED
Transfer Out Response
code
string
false
none
Status code. "SUCCESS" for success, other values indicate failure.
data
false
none
Generic paginated response data
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request receiving timestamp
responseTime
string(timestamp)
false
none
Server response returning timestamp
traceId
string
false
none
Call trace ID
Transfer Out Data List
dataList
false
none
Data list
nextPageOffsetData
string
false
none
Offset to retrieve the next page. If no next page data, the value will be an empty string
Transfer Out Order
id
string(int64)
false
none
Transfer out order ID
userId
string(int64)
false
none
User ID
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Coin ID
amount
string
false
none
Transfer amount
receiverAccountId
string(int64)
false
none
Receiver Account ID
receiverL2Key
string
false
none
Receiver account L2 key. bigint for hex str
clientTransferId
string
false
none
Client defined ID. Used for idempotent checks and signature generation nonce
isConditionTransfer
boolean
false
none
Whether it is a conditional transfer
conditionFactRegistryAddress
string
false
none
Address of condition fact registry contract. Required when is_conditional_transfer=true
conditionFactErc20Address
string
false
none
ERC20 address used to generate the condition fact. Required when is_conditional_transfer=true
conditionFactAmount
string
false
none
Amount used to generate condition fact. Required when is_conditional_transfer=true.
conditionFact
string
false
none
The conditional transfer fact. Required when is_conditional_transfer=true
transferReason
string
false
none
Transfer reason
l2Nonce
string(int64)
false
none
L2 signature nonce. Take the first 32 bits of sha256(client_transfer_id)
l2ExpireTime
string(int64)
false
none
L2 signature expiration time in milliseconds. When generating/verifying the signature, the hour should be used: l2_expire_time / 3600000
l2Signature
false
none
L2 signature information
extraType
string
false
none
Additional type. Used by upper layer business
extraDataJson
string
false
none
Additional data in JSON format. Defaults to empty string
status
string
false
none
Transfer status
receiverTransferInId
string(int64)
false
none
ID of receiver transfer in order.
collateralTransactionId
string(int64)
false
none
ID of related collateral detail. Exists when status=SUCCESS_XXX/FAILED_L2_REJECT/FAILED_L2_REJECT_APPROVED
censorTxId
string(int64)
false
none
Censor processing sequence. 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
transferReason
UNKNOWN_TRANSFER_REASON
transferReason
USER_TRANSFER
transferReason
FAST_WITHDRAW
transferReason
CROSS_DEPOSIT
transferReason
CROSS_WITHDRAW
transferReason
UNRECOGNIZED
status
UNKNOWN_TRANSFER_STATUS
status
PENDING_CHECKING
status
PENDING_CENSORING
status
SUCCESS_CENSOR_SUCCESS
status
SUCCESS_L2_APPROVED
status
FAILED_CHECK_INVALID
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
Transfer In Response
code
string
false
none
Status code. "SUCCESS" for success, other values indicate failure.
data
false
none
Correct response data
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request receiving timestamp
responseTime
string(timestamp)
false
none
Server response returning timestamp
traceId
string
false
none
Call trace ID
Get Transfer Available Amount Response
code
string
false
none
Status code. "SUCCESS" for success, other values indicate failure.
data
false
none
Get Transfer Available Amount - Response
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request receiving timestamp
responseTime
string(timestamp)
false
none
Server response returning timestamp
traceId
string
false
none
Call trace ID
Get Transfer Available Amount
availableAmount
string(decimal)
false
none
Available amount
Properties
code
string
false
none
Status code. "SUCCESS" for success, other values indicate failure.
data
false
none
Correct response data
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request receiving timestamp
responseTime
string(timestamp)
false
none
Server response returning timestamp
traceId
string
false
none
Call trace ID
Create Transfer Out Order - Response
code
string
false
none
Status code. "SUCCESS" for success, other values indicate failure.
data
false
none
Create Transfer Out Order - Response
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request receiving timestamp
responseTime
string(timestamp)
false
none
Server response returning timestamp
traceId
string
false
none
Call trace ID
Create Transfer Out Order Response Data
transferOutId
string(int64)
false
none
Transfer out order ID
Create Transfer Out Order request parameters
accountId
string(int64)
false
none
Account ID
coinId
string(int64)
false
none
Asset ID
amount
string
false
none
Transfer amount
receiverAccountId
string
false
none
Receiver account ID
receiverL2Key
string
false
none
Receiver account L2 key. bigint for hex str
clientTransferId
string
false
none
Client defined ID. Used for idempotent checks and signature generation nonce
transferReason
string
false
none
Transfer reason
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 hour should be used: l2_expire_time / 3600000
l2Signature
string
false
none
L2 signature
extraType
string
false
none
Additional type. Used by upper layer business
extraDataJson
string
false
none
Additional data in JSON format. Defaults to empty string
Enum Values
transferReason
UNKNOWN_TRANSFER_REASON
transferReason
USER_TRANSFER
transferReason
FAST_WITHDRAW
transferReason
CROSS_DEPOSIT
transferReason
CROSS_WITHDRAW
transferReason
UNRECOGNIZED
Last updated