This already summaries the issue I’m currently trying to figure out to the to prevent negative balance.

(testnet) I tried using createrawtransaction answered.
When I tried to all balance to an address, the txid was created successfully using createrawtransaction but when I ran the fundrawtranaction on that txid it showed

error code: -4
error message:
Insufficient funds

The goal is to calculate transaction fee before hand to check either sufficient balance is available of an account using sendfrom

Source link
Based Blockchain Network


Please enter your comment!
Please enter your name here