Bitcoin-com / rest.bitcoin.com

Bitcoin.com's Cloud's REST API
https://rest.bitcoin.com
MIT License
19 stars 26 forks source link

Error output of sendRawTransaction changed #541

Closed christroutner closed 2 months ago

christroutner commented 4 years ago

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 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.

Madrugada75 commented 2 months ago

Any clues on this error? I had the same when trying to mint an item.

christroutner commented 2 months ago

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.