跳转到主要内容
POST
/
api
/
deposit
/
getPreDepositInfo
请求预存款接口
curl --request POST \
  --url https://waas2-out-api.powersafe-rel.cc/api/v1/api/deposit/getPreDepositInfo \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "preDepositOrderId": "PD123456789",
  "adjustDepositAmount": "100.50",
  "adjustAmountUpperBound": "105.00",
  "adjustAmountLowerBound": "95.00",
  "chainName": "TRON",
  "symbol": "USDT"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "uniqueDepositAmount": "100.53",
    "preDepositOrderId": "PD123456789"
  }
}

接口描述

请求预存款接口,用于调整存币金额以确保金额唯一性。 此接口仅用于辅助租户调整存币金额,不实际获取存币地址。

Headers

Content-Type
string
required

请求内容类型

Example:

"multipart/form-data"

X-API-KEY
string
required

平台方分配的 API-KEY

Example:

"your-api-key"

Body

application/json

预存款请求参数(JSON 格式)。

preDepositOrderId
string
required

预存币单号,用于标识本次存款调整操作的唯一标识。

adjustDepositAmount
string
required

待调整的存币金额,作为调整金额的参考值。

adjustAmountUpperBound
string
required

存币金额调整的上限值。

adjustAmountLowerBound
string
required

存币金额调整的下限值。

chainName
string
required

链名,例如 TRON、ETH 等。

symbol
string
required

币种符号,例如 USDT、BTC 等。

Response

成功响应,返回调整后的唯一存币金额及预存币单号。

code
integer

状态码(0:成功)

message
string

返回的消息

data
object