Jasonandjay

Results 62 comments of Jasonandjay

@junderw review this

We need to evaluate it. Is there any deeper reason?

Obviously when using P2WPKH type UTXO, you need to use witnessUtxo instead of nonWitnessUtxo

This requires debugging the script line by line, but I don't know if it is convenient to provide me with the code containing the relevant test account.

We have unit tests and integration tests to ensure code logic. This is the first time you have encountered this problem, so I believe it may be related to the...

You can refer to the integration test of PSBT(`test/psbt.spec.ts`). The link where you encountered the error is the signature stage. P2WPKH is not much different from other payment methods.

> Hey @jasonandjay, I have a question. > > In the sendBTC function, I might have different types of toAddress, such as Native Segwit (P2WPKH), Taproot, or Nested Segwit (P2SH-P2WPKH)....

hello @arunMtDev, Is this problem solved? If not, can you provide the signed PSBT and your public key, and I will help debug it

> Hello @jasonandjay, > > The main issue with my code is that I'm unable to sign the PSBT with the line `psbt.signAllInputs(keyPair)`. I’m encountering the error: 'No inputs were...

Based on the PSBT and public key you provided, I debugged and found that signAllInputs can work properly. The following is my test code The next step may require you...