You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sendBitcoin function needs extra utxo to pay for the gas. And you will get the same value as you input.
But on unisat wallet, it will include the gas fee when sending Max. And what you get will less than Max value.
You may get fee rate by mempool api. And the size is uaully fixed. Then you can know how much fee rate you set, how much gas fee you need to pay.
When I call
unisat.sendBitcoin('address', maxBalance)
, the unisat wallet prompts Insufficient btc utxomaxBalance is get from
unisat.getBalance
However, when using Unisat Send, fill in Max Balance, and it will be successful
I hope
unisat.sendBitcoin
will be consistent with unisat sendBecause it's too difficult to calculate feeRate on the front end
The text was updated successfully, but these errors were encountered: