There is only basic information in the transaction history list. Use the GET /api/v5/waas/transaction/get-transaction-detail
API to obtain transaction details.
//Define request parameters
const params = {
walletId: '13886e05-1265-4b79-8ac3-b7ab46211001',
orderId: '469356614923743232',
chainId: '1'
};
//Define auxiliary function
const getTransactionDetailData = async () => {
const apiRequestUrl = getRequestUrl(
apiBaseUrl,
'/api/v5/waas/transaction/get-transactions',
params,
);
return fetch(apiRequestUrl, {
method: 'get',
headers: headersParams,
})
.then((res) => res.json())
.then((res) => {
return res;
});
};
const { data: transactionDetailData } = await getTransactionDetailData();
After querying the details successfully, you will receive the following response:
{
"code": 0,
"msg": "success",
"data": [{
"chainId": "1",
"orderId": "469356614923743232",
"txhash": null,
"address": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
"fromAddr": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
"toAddr": "0x1e80c39051f078ee34763282cbb36ffd88b40c65",
"txType": "2",
"txTime": "1697547606177",
"txStatus": "3",
"exploreUrl": "",
"gasPrice": "null",
"priorityFee": "null",
"gasLimit": "null",
"nonce": "null",
"assetChange": [{
"coinId": "3",
"direction": "2",
"coinAmount": "0.00012300000000000",
"coinAmountNum": "123000000000000",
"precision": "18",
"coinSymbol": "ETH",
"coinName": "ETH",
"currencyAmount": null,
"coinLogoUrl": "https://static.coinall.ltd/cdn/wallet/logo/ETH-20220328.png"
}]
}]
}