getDepositUrl
取得 URL,其中會列出使用者的所有貨幣地址
給定一個使用者識別碼 (user-identifier),這個函式 (function) 會透過 AkashicChain 在所有網路建立錢包供使用者存入,並回調一個 URL 來顯示它們
範例
取得 user123
的存款 URL
const depositUrl = await akashicPay.getDepositUrl(
'user123'
);
// with referenceId
const depositUrl = await akashicPay.getDepositUrl(
'user123', 'order1'
);
// with receiveCurrencies
const depositUrl = await akashicPay.getDepositUrl(
'user123', 'order1', [Currency.USDT]
);
// with requestedAmount and requestedCurrency
const { address, identifier } = await akashicPay.getDepositUrlWithRequestedValue(
'user123', 'order1', Currency.USD, "1000"
);
URL 檢視範例

Last updated
Was this helpful?