Comments (2)
From what I know, this message comes from the RPC node responding with the error message which says that the transaction being broadcasts conflicts with another transaction which exists in the mempool. This happens when your transaction attempts to use a UTXO that has already be included as an input for another transaction already broadcast; essentially a double spend.
The only way to fix this is with RBF.
from bitcoinjs-lib.
If this is intentional (You want to replace an already spent UTXO): Use RBF.
If this is unintentional: The place you are getting your UTXO information is bad, OR you are performing transactions too quickly for the API you're using while not accounting for self-spent UTXOs, so you're accidentally spending the same UTXO twice.
from bitcoinjs-lib.
Related Issues (20)
- Can't use tiny-secp256k1 (required by bitcoinjs-lib for ECC) in browser: fs_1.readFileSync is not a function HOT 7
- Psbt.signInput Passed but Broadcast Failure with msg `non-mandatory-script-verify-flag (Witness program hash mismatch)` HOT 5
- How to make taproot P2TR multiSig wallet HOT 3
- Error when deserializing a PSBT HOT 6
- Getting non-mandatory-script-verify-flag (Invalid Schnorr signature) on taproot key path spending with LEDGER nano HOT 1
- Tesnet: is not a valid bitcoin testnet address HOT 3
- Faucet for P2PKH testnet HOT 2
- No inputs were signed HOT 6
- Error: Need validator function to validate signatures HOT 11
- Invalid network version from bitcoin.ECPair.fromWIF(senderPrivateKey, network) - bitcoinjs-lib ^5.2.0 HOT 1
- How to combine Blockcypher /txs/new API to do RBF HOT 22
- non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation) HOT 2
- How to sign Psbt with P2WSH(P2MS) Script? HOT 1
- How to get exact tx fee HOT 3
- Is the tapMerkleRoot required in the input during a key-spend? HOT 2
- Feature Request: Taproot support for signAllInputsHD HOT 3
- Now HOT 2
- > > Hey, guys! How is it going? Hope you are doing well :)
- Failing to broadcast - non-mandatory-script-verify-flag (Witness program hash mismatch) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoinjs-lib.