5 votes
Accepted

Sum of block values not zero?

The amount paid out in the coinbase transaction is not reward+fees. The link you shared shows Input Value 3,067.86 BTC Output Value 3,117.80 BTC The difference ought to be the reward claimed ...
5 votes
Accepted

Relation between transaction data and transaction id

Since BIP144, transaction data consists of two parts (normal data and witness data). There are also two distinct transaction serialization formats: The legacy serialization format, which stores ...
5 votes
Accepted

What are the OP codes associated with bc1?

Native segwit scriptPubKeys are of the form OP_n + <data>, so first a single number opcode followed by a push of some data (called the witness program). Specifically: For P2WPKH (pay to witness ...
4 votes
Accepted

Why zero amount transaction outputs are kept in Bitcoin Core chainstate database?

Are there any ways such an input can really useful? It's not a question of usefulness, but necessity. It is legal to spend such outputs in the Bitcoin consensus rules. If these outputs were not added ...
4 votes

Calculating addresses from Bitcoin transaction data

In short, the answer to your question depends on what you mean by "address". Historically, there are two different concepts with that name which I'll refer to as payment destinations and ...
3 votes

Block packets contain tx_in_sig_script, is this shared with tx data from tx packets?

Block packets contain tx_in_sig_script, is this shared with tx data from tx packets? All network packets follow the same serialisation for transactions. It is specified in https://en.bitcoin.it/wiki/...
3 votes
Accepted

Is there a set length that a signature can be?

Within the script language there are two types of instructions: Opcodes Data pushes Data pushes are encoded by a single byte n (with value between 0 and 75 inclusive), followed by n bytes (the data ...
3 votes
Accepted

Request tx messages from other peers?

See https://en.bitcoin.it/wiki/Protocol_documentation#getdata for the original reason why this is not possible: arbitrary access to transactions in the chain is not allowed to avoid having clients ...
3 votes

BIP 32 Root key for connecting wallets

If you give him the key, he can remove any money in that wallet and can remove any money placed by you in that wallet anytime in the future I would distrust anyone making that kind of suggestion and ...
3 votes
Accepted

How to parse out the recipient address of "change" from transactions in tx?

The whole point of having change addresses in Bitcoin's design (as opposed to an account based model where every participant has a key with a balance) is hiding who the payment is for. Change ...
2 votes

Sum of block values not zero?

You’re right, the “minted” value looks misleading in this context. It seems that it actually contains the “allowed amount to be created” rather than the amount of new bitcoins that were actually ...
  • 68.6k
2 votes
Accepted

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

I suspect one cause of your problem is that you are not taking into account the full complexity of Bitcoin and are taking too many shortcuts in parsing the data. addresses (e.g everything between ...
2 votes

What are Bitcoin's transaction and script limits?

Transaction validity vs standardness* A transaction that follows the consensus rules is a valid transaction. However, some extra rules were introduced that are called standardness rules. Bitcoin nodes ...
  • 2,254
2 votes
Accepted

How to extract transaction amounts from tx block?

This site says that I have to use flags to extract out the transaction amounts [...] Also, what are the end markers I could use to extract that amount? (my emphasis) My advice is don't search the hex ...
1 vote

Request tx messages from other peers?

No, such a function does not exist. A node will not provide a transaction that it has not previously offered to the requesting peer—that would make nodes trivially fingerprintable. Also, it would be ...
  • 68.6k
1 vote
Accepted

How is it resolved when two miners find the block at the same time?

There will be a Blockchain reorganisation of 1 or 2 blocks. As each node receives a conflicting block it will choose the one with most work. The other will be set aside as a "stale" block. ...
1 vote
Accepted

parse bitcoin addresses from transactions received through the P2P protocol using python

I’m assuming that you are actually just interested in getting information on every transaction your node sees, rather than the actual p2p traffic. If so, here is how I would approach your problem: ...
  • 68.6k
1 vote

Is there a set length that a signature can be?

The serializations of pubkeys and signatures are variable length. Their data push operations explicitly tell you how many bytes are pushed. Then, the serialization itself often includes further length ...
  • 68.6k
1 vote

Binance API and Unity. Game involving depositing crypto and withdrawal

you are talking about BUSD which is a stabble coin that are not linked to bitcoin, you should see which blockchain use BUSD and how to use it, or better check the lightning network which is a bitcoin ...
  • 2,550
1 vote

How to extract transaction amounts from tx block?

It's not clear what method you are using, parsing raw block data or CLI/RPC calls. Since you are only asking for values the basic principle is simple. Pick a block, and use getblock blockHash 2 but ...
  • 5,388
1 vote

What are the OP codes associated with bc1?

I think you may be misunderstanding how an address is constructed and where scripting opcodes fit into that. The bc1 indicates the use of the bech32 address format for SegWit versions as defined in ...
1 vote
Accepted

Bitcoin Transaction unknown address input and output!

TL;DR: Recipients should completely ignore change outputs of transactions. Is it possible to disable that process asset shifting procedure from lower blocks to higher blocks? I think you are ...

Only top scored, non community-wiki answers of a minimum length are eligible