Linked Questions

13 votes
1 answer
3k views

What is the script assembly and execution in P2TR spend (spend from Taproot)

So I have found and fundamentally understand how P2PKH is assembled from inputs and outputs to create a bitcoin forth-like script for execution. I looked at the SegWit BIP examples section and I found ...
Dan's user avatar
  • 461
6 votes
2 answers
2k views

What are the scriptPubKey, scriptSig, redeem script and witness for the various output types?

scriptPubKey, redeem script, witness script, witness program are defined in this StackExchange post. What are the scriptPubKey, scriptSig, redeem script and witness for the various output types (P2PKH,...
Michael Folkson's user avatar
5 votes
1 answer
706 views

How to parse a raw transaction field by field?

I am trying to understand all the parts of a legacy transaction. If I wanted to translate each part of the transaction to something human-readable, how would I need to go about that?
Luciana Ferreira's user avatar
2 votes
1 answer
646 views

What are the components of the raw block shown in this image?

I'm wondering what the portion between the block header and the transaction data (the un-annotated section) is. I can't seem to find any information on it.
Jamo's user avatar
  • 167
0 votes
1 answer
1k views

How to differentiate between BTC transactions and BRC20 transactions on a blockchain?

How to differentiate between BTC transactions and BRC20 transactions on a blockchain using the RCP interface? This is a transaction record that contains BRC20 tokens which I found on a blockchain ...
Mashaji's user avatar
1 vote
2 answers
167 views

How do segwit nodes behave when they receive a transaction between two legacy nodes?

Segwit nodes know about the move of the witnesses to another part of the transaction block. What would happen when they receive a transaction between two legacy nodes, knowing that they will build it ...
nourou4them's user avatar
2 votes
1 answer
740 views

How can I get the destination address from raw transaction data?

I am writing a program that reads Bitcoin transactions from .blk files and performs some analysis on them. I would like to get the transaction destination addresses (like in some transaction explorers:...
zigak's user avatar
  • 21
1 vote
1 answer
730 views

In what format does a block store the transaction data?

Does it store the raw transaction data literally like (excuse the formatting inaccuracies): 0x24134i59435ej3...9 sends 0x9wri03vw3sdfsd...i 26.00000023423 Bitcoin. Or is it stored differently?
Jamo's user avatar
  • 167
0 votes
1 answer
937 views

How to decipher Bitcoin Hex code?

I have this hex code: ...
rockstardev's user avatar
1 vote
1 answer
329 views

How to compute a TXID of any bitcoin transaction in Python

there, I've already looked at other similar posts on here but with little luck. All im trying to do is calculate the TXID of a transaction after downloading the transaction in hexadecimal from a ...
RabbitHole6565's user avatar
4 votes
2 answers
194 views

Is it possible to retrieve input addresses and input values of bitcoin transactions from raw blk.dat files?

I'm developing a script that processes blk.dat files from bitcoin core. So far, I am able to retrieve the following attributes for transaction inputs: "vin", "index", "...
Andreas's user avatar
  • 89
1 vote
1 answer
206 views

Native P2WSH over P2SH | P2SH-P2WSH

I'm in the process of attempting to generate a transaction using the Python Bitcoin Utils library. that involves P2WSH-over-P2SH (P2SH-P2WSH). My activity is on the regtest network. Below is the code ...
Deepanshu's user avatar
-1 votes
1 answer
71 views

TX doesn't contain an equal number of transactions with bitcoin addresses

I'm researching bitcoin and noticed that when transactions come through my node I don't have an equal number of "amounts" (e.g everything between 88ac and 19) with addresses (e.g everything ...
bitcoinluvr6969's user avatar
0 votes
2 answers
83 views

What is TXID?Is it used to calculate merkleroot [duplicate]

I downloaded the block template where each transaction contains 'data', 'txid', 'hash'. I read in some articles that the Merkelroot is calculated using 'txid'. Is true? Why txid not hash, and what's ...
Jack Green's user avatar
0 votes
1 answer
31 views

Example of computing segwit txid from raw tx data

txid = 4508d55cf0d93ac43cbbb13a3b63d7a1e146911745f049893fc6b2d84e4e1256 raw block data = ...
Meir's user avatar
  • 13