出入金接口
Body
currencyIdinteger · int64Optional
amountnumberOptional
addressstringOptional
Responses
200
OK
*/*
post
POST /v1/wallet/withdraws/requestId HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"currencyId": 1,
"amount": 1,
"address": "text"
}
200
OK
{
"success": true,
"data": {
"bfcAddress": "text",
"action": "SIGNIN",
"withdrawId": 1,
"coinType": "text",
"amount": "text",
"chainId": 1,
"expires": 1,
"hash": "text",
"payload": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Body
bfcAddressstringOptional
BFC地址
actionstring · enumOptionalPossible values:
动作
withdrawIdinteger · int64Optional
提现id
coinTypestringOptional
amountstringOptional
chainIdinteger · int64Optional
expiresinteger · int64Optional
hashstringOptional
signaturestringOptional
Responses
200
OK
*/*
post
POST /v1/wallet/withdraw/sign HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"bfcAddress": "text",
"action": "SIGNIN",
"withdrawId": 1,
"coinType": "text",
"amount": "text",
"chainId": 1,
"expires": 1,
"hash": "text",
"signature": "text"
}
200
OK
{
"success": true,
"data": true,
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Query parameters
offsetIdinteger · int64OptionalDefault:
0
maxResultsinteger · int32OptionalDefault:
100
Responses
200
OK
*/*
get
GET /v1/wallet/withdraws HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": {
"hasMore": true,
"nextOffsetId": 1,
"results": [
{
"id": 1,
"createdAt": 1,
"updatedAt": 1,
"withdrawId": 1,
"userId": 1,
"currency": "text",
"chainId": 1,
"token": "text",
"tokenDecimals": 1,
"amount": 1,
"status": "INIT",
"txHash": "text",
"expiresAt": 1,
"operator": "text",
"withdrawFor": "text",
"approvedCount": 1,
"requiredCount": 1,
"validators": "text",
"approvalStatus": "text",
"userSig": "text",
"usdQuotedAmount": 1,
"usdQuotedPrice": 1
}
]
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Query parameters
requestIdinteger · int64OptionalDefault:
0
Responses
200
OK
*/*
get
GET /v1/wallet/queryWithdrawById HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": {
"id": 1,
"createdAt": 1,
"updatedAt": 1,
"withdrawId": 1,
"userId": 1,
"currency": "text",
"chainId": 1,
"token": "text",
"tokenDecimals": 1,
"amount": 1,
"status": "INIT",
"txHash": "text",
"expiresAt": 1,
"operator": "text",
"withdrawFor": "text",
"approvedCount": 1,
"requiredCount": 1,
"validators": "text",
"approvalStatus": "text",
"userSig": "text",
"usdQuotedAmount": 1,
"usdQuotedPrice": 1
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Query parameters
offsetIdinteger · int64OptionalDefault:
0
maxResultsinteger · int32OptionalDefault:
100
Responses
200
OK
*/*
get
GET /v1/wallet/deposits HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": {
"hasMore": true,
"nextOffsetId": 1,
"results": [
{
"id": 1,
"txHash": "text",
"currency": "text",
"blockHash": "text",
"blockNumber": 1,
"blockTimestamp": 1,
"operator": "text",
"depositFor": "text",
"token": "text",
"amount": 1,
"removed": true
}
]
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Query parameters
rangestringOptionalDefault:
""
currencystringOptionalDefault:
""
offsetIdinteger · int64OptionalDefault:
0
limitinteger · int32OptionalDefault:
100
Responses
200
OK
*/*
get
GET /v1/wallet/flows HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": {
"hasMore": true,
"nextOffsetId": 1,
"results": [
{
"id": 1,
"currency": "text",
"flowType": "DEPOSIT",
"sign": true,
"amount": 1,
"createdAt": 1
}
],
"range": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Last updated