Lấy lịch sử ví
Lấy toàn bộ lịch sử giao dịch của ví trên Chiliz Chain bằng Moralis Wallet API, kèm mẫu code cho các bản ghi giao dịch ghi có/ghi nợ.
Lịch sử ví là gì?
Cách thực hiện với Moralis
import Moralis from 'moralis';
try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});
const response = await Moralis.EvmApi.wallets.getWalletHistory({
"chain": "0x15b38", // This is for Chiliz Chain Mainnet.
// For Spicy Testnet, use "0x15b32".
"order": "DESC",
"address": "0xYourWalletAddress"
});
console.log(response.raw);
} catch (e) {
console.error(e);
}Cách thực hiện với Tatum
Cách thực hiện với thirdweb
Cách thực hiện với Nodit
Cập nhật lần cuối
Nội dung này có hữu ích không?