Publication
Partagez vos connaissances.
Feb 05, 2025
Questions et Réponses avec des Experts
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
Partager
Commentaires
Réponses
2dudley_smith124
Feb 5 2025, 16:49Si l'showBalanceChanges
option ne vous indique que la quantité utilisée, essayez d'utiliser la getBalance
méthode. Vous trouverez plus de détails ici : Méthode GetBalance. Cette méthode devrait vous aider à récupérer le solde restant après la transaction.
1
Commentaires
Theoremus251
Feb 5 2025, 17:29options: { showBalanceChanges: true }
Vous devez transmettre l'option ShowBalanceChanges dans votre demande comme ceci :.
1
Commentaires
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.