Alternative Method to Calculate Balance After platform.getBalance Deprecation

Hello AVAX Community,

I recently noticed that the platform.getBalance method has been deprecated as of AvalancheGo v1.9.12. I’m looking for an alternative approach to calculate the balance of an address on the AVAX-P chain.

I’ve tried using the platform.getUTXOs method to fetch UTXOs and sum the amounts, but it seems cumbersome. Is there a more efficient or recommended way to achieve this?

Thank you!

1 Like