Skip to main content

Questions tagged [p2sh-p2wpkh]

P2SH-P2WPKH (also called "nested" or "wrapped" P2WPKH) is an output format introduced in SegWit that uses the legacy address format to maintain compatibility with older wallets.

Filter by
Sorted by
Tagged with
0 votes
2 answers
54 views

Can I spend a P2PKH transaction via the script-path of P2TR?

Is it possible to use a P2TR script-path to spend a legacy P2PKH UTXO? I have heard it is possible to "wrap" a P2PKH transaction with P2SH. Maybe it would be possible to "wrap" the ...
Mike C's user avatar
  • 1
0 votes
1 answer
52 views

Error validating transaction: Transaction orphaned, missing reference (TESTNET)

RAWTRANSACTION HEX ...
Tepan's user avatar
  • 3
0 votes
1 answer
46 views

HOW TO SPEND THE P2SH only use Redeemscript hex ? no private key involved

the codes i use to build the transaction import hashlib import base58 # Define previous transaction details prev_txid = 'ec5596bf71a498fc944e912f0bc21f0ead3806965402d74f1d670c2fff7c08c2' prev_index = ...
Tepan's user avatar
  • 3
0 votes
0 answers
91 views

Cannot create p2sh-p2wpkh/ (Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'length'))

I'm trying to create transactions with external scripts. Separately, using each input separately and creating a transaction with one input, everything works out with all the scripts. import * as ...
Fernader's user avatar
2 votes
1 answer
509 views

What is the purpose of P2WPKH-P2SH?

When I ask the google what is the purpose of P2WPKH nested in P2SH, it says the following: This allows the user to send funds to a SegWit (Segregated Witness) address using a non-SegWit transaction, ...
dassd's user avatar
  • 1,099
3 votes
1 answer
962 views

How to build a transaction using bitcoinjs-lib

I'm trying to build a transaction using bitcoinjs-lib. Here is my last transaction. https://blockstream.info/api/tx/91feea5f5c7b67b3e56c0f5d23d6da3065855c23b4cc7dded8efd8ff8065500f { "weight&...
Berry Blue's user avatar
1 vote
1 answer
706 views

Transaction keep beeing rejected "non-mandatory-script-verify-flag"

I'm developping Bitcoin integration for Microsoft Dynamics Business Central to offer enterprise capability to apply Bitcoin receivable and payable to accounting. To send a transaction, I'm using ...
Maxime CATY's user avatar
1 vote
2 answers
168 views

Is the witness `version` of a bech32 address required to "send spendable funds" to the address?

Let's assume Alice has Bob's bech32 address (BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4). After decoding the address Alice knows that the address has a witness version of 0 AND 20 bytes of a hash (32 ...
janniks's user avatar
  • 195
1 vote
1 answer
192 views

How to make a P2SH-P2WPKH output using bitcoin-cli?

Can you give a simple step-by-step example on how to create a transaction with an output of P2SH-P2WPKH using bitcoin-cli on Regtest?
Bitcoin_1o1's user avatar
4 votes
0 answers
298 views

Creating a P2SH-P2WPKH using Bitcoin Functional Test Framework

I'm using the Bitcoin Functional Test framework to understand how SegWit works by analyzing and building a P2SH-P2WPKH transaction. When I run my code the transaction gets created, but when I inspect ...
Bitcoin_1o1's user avatar