mobilecoinofficial / full-service

A MobileCoin service for wallet implementations.
Other
46 stars 21 forks source link

Update Balance JSON response to include max spendable MOB #295

Closed briancorbin closed 2 years ago

briancorbin commented 2 years ago

There is currently no way to know what the max spendable MOB in a single transaction is besides trying and failing to construct a transaction. I propose that we add a field to the Balance JSON RPC object called max_spendable_pmob, which would be the sum of the 16 largest txos (which is the max number of inputs per transaction) minus the current known transaction fee, or the default otherwise from the mobilecoin library.

Shramp commented 2 years ago

PR: https://github.com/mobilecoinofficial/full-service/pull/314