帖子
分享您的知识。
Feb 05, 2025
专家问答
How to get remaining balance after a transaction using TypeScript?
I'm working on a project using the TypeScript SDK and need to fetch the recipient and balance left after a transaction. I tried using the showBalanceChanges option, but it's giving me the amount used in the transaction. How can I obtain the remaining balance after the transaction is completed?
- Move CLI
2
2
分享
评论
答案
2dudley_smith124
Feb 5 2025, 16:49如果该showBalanceChanges
选项仅向您提供所用金额,请尝试使用该getBalance
方法. 你可以在这里找到更多细节:getBalance Method. 这个方法应该可以帮助你在交易后提取剩余的余额.
1
评论
Theoremus251
Feb 5 2025, 17:29options: { showBalanceChanges: true }
你必须像这样在请求中传递showBalanceChanges选项:.
1
评论
你知道答案吗?
请登录并分享。
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148帖子231答案