monero-project / monero-site

https://getmonero.org
BSD 3-Clause "New" or "Revised" License
288 stars 391 forks source link

blocks_to_unlock not listed as output to wallet RPC method get_balance #2022

Closed dimalinux closed 1 year ago

dimalinux commented 2 years ago

The get_balance wallet RPC method has a blocks_to_unlock field (and possibly others) that are not documented here: https://github.com/monero-project/monero-site/blame/28cfcdb38e735f5c35b83c067d8410ff4dc81ad4/resources/developer-guides/wallet-rpc.md#L173-L178

Implementation reference: https://github.com/monero-project/monero/blob/v0.18.1.0/src/wallet/wallet_rpc_server_commands_defs.h#L108-L109

plowsof commented 2 years ago

Thanks. There is also a "strict" boolean that is missing. I have traced it back to here: https://github.com/monero-project/monero/blob/master/src/wallet/wallet2.cpp#L5989

i will make a PR to update