getDepositUrl

取得 URL,其中會列出使用者的所有貨幣地址

給定一個使用者識別碼 (user-identifier),這個函式 (function) 會透過 AkashicChain 在所有網路建立錢包供使用者存入,並回調一個 URL 來顯示它們

範例

取得 user123 的存款 URL

const depositUrl = await akashicPay.getDepositUrl(
  'user123', // identifier
  'orderId', // optional referenceId
  [Currency.USDT], // optional currencies to be displayed
  "https://example.com" // optional redirectUrl
);

// with requestedAmount, requestedCurrency and markupPercentage
const { address, identifier } = await akashicPay.getDepositUrlWithRequestedValue(
  'user123', // identifier
  'orderId', // referenceId
  Currency.USD, // requested currency
  "1000", // requested amount
  array(CurrencySymbol::USDT), // optional currencies to be displayed
  1, // optional mark up percentage on exchange rate
  "https://example.com" // optional redirectUrl
);

URL 檢視範例

Last updated

Was this helpful?