Beitrag
Teile dein Wissen.
Feb 05, 2025
Experten Q&A
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
Teilen
Kommentare
Antworten
2dudley_smith124
Feb 5 2025, 16:49Wenn die showBalanceChanges
Option nur den verwendeten Betrag angibt, versuchen Sie es mit der getBalance
Methode. Weitere Informationen finden Sie hier: GetBalance-Methode. Diese Methode sollte Ihnen helfen, das verbleibende Guthaben nach der Transaktion abzurufen.
1
Kommentare
Theoremus251
Feb 5 2025, 17:29options: { showBalanceChanges: true }
Sie müssen die Option showBalanceChanges in Ihrer Anfrage wie folgt übergeben:.
1
Kommentare
Weißt du die Antwort?
Bitte melde dich an und teile sie.