跳至主要内容

取得存款地址

取得存款地址 (Get Deposit Address)

端點: POST /getDepositAddress

說明: 擷取使用者在指定網路存款的 L1 地址。

請求參數:

參數類別需要說明
networkNetworkSymbolL1 網路 (例如 ETH)
identifierstringUserID 或類似識別碼 (identifier)
referenceIdstring可選的參考 ID 用於識別存款訂單

回應:

{
"address": "string",
"identifier": "string"
}

以要求的值取得存款地址 (Get Deposit Address With Requested Value)

端點: POST /getDepositAddressWithRequestedValue

說明: 擷取具有要求值的 L1 地址。符合要求值的第一筆存款會觸發 referenceId。其他存款會觸發不含 referenceId 的回詬調。

請求參數:

參數類別需要說明
networkNetworkSymbolL1 網路 (例如 ETH)
identifierstringUserID 或類似識別碼 (identifier)
referenceIdstring可選的參考 ID 用於識別存款訂單
requestedCurrencyCurrency要求的貨幣(例如 USDTUSDCUSD
requestedAmountstring要求的金額(以字串形式,以避免精確度問題)
tokenTokenSymbol可選的代幣符號 (例如 USDT)
markupPercentagenumber適用於匯率的加價百分比 (最小: -100, 最大: 100)

回應:

{
"address": "string",
"identifier": "string",
"referenceId": "string",
"requestedAmount": "string",
"requestedCurrency": "string",
"network": "string",
"token": "string",
"exchangeRate": "string",
"amount": "string"
}