Closed christroutner closed 2 months ago
Any clues on this error? I had the same when trying to mint an item.
This repository is no longer maintained. You should consider using minimal-slp-wallet, which contains bch-js.
This rest.bitcoin.com repository was forked to create bch-api which is used by both the above libraries.
This Issue is a discussion thread to investigate exactly what changed and how to fix it.
It appears that there was a change in behavior of the full node
sendRawTransaction
RPC command in the ABC full node from the November 2019 network upgrade.This rest.bitcoin.com endpoint returns this error:
{ "error": "bad-txns-in-belowout, value in (0.00001092) < value out (0.00002184) (code 16)" }
Which appears to be new behavior. The error message is originating from the full node and being passed along by rest, through BITBOX, to an end-user application like Badger Wallet.
The code in rest that handles this endpoint in BITBOX lives here
Here is the best explanation I could find for a 'code 16' error
The error appears to be generated by trying to double-spend a UTXO that has already been spent, and probably confirmed in a different block. We need to clarify if this is actually the case.