Comments (4)
The bc1qdlxcmcncy059gw0my604y35s5257mxua6ttlje
output is at index: 1,
but you're using index: 0,
...
I don't understand what you're talking about. Your input is clearly pointing to a different UTXO.
from bitcoinjs-lib.
The error is pretty clear.
It can’t sign for that input with that pubkey because that pubkey is unrelated to that input.
from bitcoinjs-lib.
The error is pretty clear.
It can’t sign for that input with that pubkey because that pubkey is unrelated to that input.
Sorry, what do you mean unrelated? This txn has bc1qdlxcmcncy059gw0my604y35s5257mxua6ttlje
as output address, which can be derrived via bitcoin.payments.p2wpkh
from 03163883cf37d71960982ee74ad91168160322688a78769f9c3db9bc72ab1142a9
pubkey.
And this hex is a raw representation of referenced tx:
010000000001017a5d1fd9635a4fe15beff85a18fc32651ff07736abc24d07afa9d0d8b66c656d0000000000ffffffff02b80b0000000000001600142e212c99d59342f463726ea8f0340a48f56fde049b530000000000001600146fcd8de27823e85439fb269f524690a2a9ed9b9d02483045022100ecab202e666a63668a1b68dcd873be4d57d61e2cbdd8f39b895e70d384b3e143022031ca826e45e944f38d4c9e95dc23ecf97035ed4b73b094feee84f057e0c1e721012103163883cf37d71960982ee74ad91168160322688a78769f9c3db9bc72ab1142a900000000
from bitcoinjs-lib.
The
bc1qdlxcmcncy059gw0my604y35s5257mxua6ttlje
output is atindex: 1,
but you're usingindex: 0,
...I don't understand what you're talking about. Your input is clearly pointing to a different UTXO.
Oh sorry, that was so stupid of me. Indeed this index: 0
caused the issue, and the code worked by coincidence when I had output mint index match an index at which this output would go in a new transaction. Sorry for wasting your time.
At least might be a hint for somebody as heedless as me in future... Thank you for your help and for this repository!
from bitcoinjs-lib.
Related Issues (20)
- Transaction sending failed (No script found for input #0) HOT 2
- Does bitcoinjs lib has instruments for creating MuSig key-path spend wallets with n-n scheme? HOT 10
- How do I consume a UTxO from a script based address (P2SH)
- How should I test the `taproot.spec.ts` file in the project in my localy NodeJS, I got the error infomation below. Thanks very much. HOT 10
- Send a Transaction with SegWit P2PKH Keypair HOT 8
- TypeError: Argument must be a Buffer when signing input HOT 1
- Bitcoin build transaction HOT 3
- can not sign input with my keypair HOT 5
- How can I add derivation (or any other way to make the address be a new one each time)? HOT 7
- How can I create inscription psbt with this library? HOT 2
- Help with spending a custom script with Pay to Witness Script Hash HOT 3
- Taproot script-spend-path with sighash ALL|ANYONECANPAY HOT 1
- A Comprehensive Documentation for BitcoinJs-Lib. HOT 2
- Does bitcoinjs-lib support MuSig2 signature ? HOT 2
- SIGHASH_SINGLE | ANYONECANPAY input signed but can't update the unsigned inputs HOT 2
- Offline signing for Psbt class HOT 3
- PSBT finalScriptWitness "Destructuring" HOT 5
- Prefix xpub to dgub[bug] HOT 1
- Signing a PBST generated with bitcoinjs-lib failed on my Coldcard HOT 10
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.