This PR is to update the useBalance() hook to getBalance instead of getUnspents
Reason being useSend psbtBuilder will already check for spendable UTXOs
setting useBalance to getBalance to check for wallet balance will allow faster balance checks when minting compared to getUnspents
always getting getUnspents especially for whale wallets will result in long wait time from the rpc
Additional comments?:
Developer Checklist:
[ ] Read your code changes at least once
[ ] No console errors on web
[ ] Your UI implementation visually matched the rendered design*
What this PR does / why we need it:
This PR is to update the useBalance() hook to
getBalance
instead ofgetUnspents
Reason beinguseSend
psbtBuilder will already check for spendable UTXOs setting useBalance togetBalance
to check for wallet balance will allow faster balance checks when minting compared togetUnspents
always getting
getUnspents
especially for whale wallets will result in long wait time from the rpcAdditional comments?:
Developer Checklist: