Publicación
Comparte tu conocimiento.
Feb 05, 2025
P&R expertos
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
Cuota
Comentarios
Respuestas
2dudley_smith124
Feb 5 2025, 16:49Si la showBalanceChanges
opción solo te da la cantidad utilizada, prueba a usar el getBalance
método. Puedes encontrar más detalles aquí: Método getBalance. Este método debería ayudarte a recuperar el saldo restante después de la transacción.
1
Comentarios
Theoremus251
Feb 5 2025, 17:29options: { showBalanceChanges: true }
Debe pasar la opción showBalanceChanges en su solicitud de esta manera:.
1
Comentarios
Sabes la respuesta?
Inicie sesión y compártalo.