xrpl.js icon indicating copy to clipboard operation
xrpl.js copied to clipboard

Method to retrieve account reserves

Open tequdev opened this issue 2 years ago • 2 comments

Currently the method to retrieve the XRP balance for an account retrieves the XRP balance including reserves.

I suggest to add a method to retrieve the available XRP balance excluding reserves or a method to retrieve the account's reserves.

reserve = reserve_base_xrp + reserve_inc_xrp * OwnerCount

Related

  • https://github.com/XRPLF/xrpl-dev-portal/issues/1709

tequdev avatar Jan 26 '23 02:01 tequdev

Do you see this as a utility that is passed server_info values and the account_info response and it calculates it or something more robust?

ckniffen avatar Jan 26 '23 02:01 ckniffen

I assumed that it would be calculated from the server_info and account_info results, but if there is a more robust one, that is fine too.

tequdev avatar Jan 26 '23 02:01 tequdev