如何显示ton web的交易记录

问题描述 投票:0回答:1

我按照手册提出要求,一切都很顺利

    const walletContract = client.open(wallet);
      const seqno = await walletContract.getSeqno();
      console.log(seqno);
        await walletContract.sendTransfer({
          secretKey: key.secretKey,
          seqno: seqno,
          messages: [
            internal({
              to: "EQA4V9tF4lY2S_J-sEQR7aUj9IwW-Ou2vJQlCn--2DLOLR5e",
              value: "0.09", // 0.05 TON
              body: "Hello", // optional comment
              bounce: false,
            }),
          ],
        });
        let currentSeqno = seqno;
        while (currentSeqno == seqno) {
          console.log("waiting for transaction to confirm...");
          await sleep(1500);
          currentSeqno = await walletContract.getSeqno();
        }
        console.log("transaction confirmed!");

现在我有一个问题,如何查看交易历史?有什么方法吗

我什么都没尝试过

telegram ton
1个回答
0
投票

您可以使用 Toncenter API 查找帐户的交易,实现此目的的方法是

transactions
,可从 /api/vs/transactions访问。

© www.soinside.com 2019 - 2024. All rights reserved.