Questions tagged [coinbase-transaction]

The "coinbase transaction" is the transaction inside a block that pays the miner his block reward.

Filter by
Sorted by
Tagged with
2
votes
1answer
216 views

How to add coinbase transaction with libblkmaker

I currently trying to develop a simple Bitcoin miner in c++ for a project on my university. For parsing the 'getblocktemplate'-data I'm using libblkmaker. Now I have to build the coinbase transaction ...
2
votes
0answers
107 views

In DASH, why is in the coinbase transaction sometimes the first output the masternode reward, and other times the second? [closed]

Example of the first output being a masternode reward Example of the first output being a proof-of-work reward What determines the order of the outputs in the generation transaction? As far as I ...
2
votes
1answer
84 views

Can a core wallet coinbase-transaction (generation transaction) be moved intact to a net new core wallet?

Can a core wallet coinbase-transaction (generation transaction) be moved intact to a net new core wallet? Wanting to go through cautious steps to claim BCH but, I hear a BTC coinbase-transaction when ...
2
votes
0answers
92 views

Can mining pool participants customize the coinbase of the block they're mining?

If a participant can customize the coinbase, how would that be done? Pool participants make certain decisions about how they mine. Some of those decisions are apparent in each block solved by that ...
1
vote
3answers
2k views

Transaction marked as “Newly generated coins” on Blockchain.info

On blockchain.info I saw a transaction labeled as "No inputs (newly generated coins)". Are these new coins generated from mining? How come that such a transaction can have 30 confirmations, while ...
1
vote
2answers
598 views

Where is coinbase transaction after a hacker successfully performs >50% attack?

Here is the scenario: Honest nodes build one block from Block_1. Hacker nodes privately build four blocks from Block_1 and broadcast these malicious blocks. Now, where is the honest node's ...
1
vote
2answers
953 views

Determining a Block's Extranonce Value

How do I determine a block's extranonce value? I know they are in the coinbase transaction, but where? How do I decode the part that is the extranonce?
1
vote
1answer
171 views

Orphan block payment maturity

I know that the outputs coinbase transaction can be spent only after receiving 100 confirmations. So is it that a miner who mined an orphan block receives the outputs of coinbase transaction but can ...
1
vote
1answer
284 views

Where do the mined bitcoins go?

I am trying to understand how the mining process works. I haven't ever mined, so I would probably understand it if I mine (maybe using zcash or another crypto that is starting). I understand the ...
1
vote
1answer
618 views

How do miners receive transaction fees?

I know that in a transaction, the difference between the amount and the sum of the outputs is the implicit transaction fee, but how do the miners that verify the block containing that transaction ...
1
vote
1answer
188 views

How to create a bitcoin transaction without inputs

How can I create a transaction without inputs and it will be broadcasted but of course won't get confirmed? I would like the simplest method to do this
1
vote
1answer
269 views

Is there a way to create coinbase transactions with an RPC command?

Is there a way to create coinbase transactions with an RPC command?
1
vote
1answer
217 views

collecting block reward and transaction fees

i was reading document about transaction data and there seems to be two contradicting paragraphs: Every block must include one or more transactions. The first one of these transactions must be a ...
1
vote
1answer
78 views

identical coinbase transactions

this sounds like an old topic but i have not found a satisfying answer yet; in history there lived two blocks with identical coinbase transactions: https://www.blockchain.com/btc/block-index/106662 ...
1
vote
2answers
306 views

What is the purpose of the script like RETURN PUSHDATA(36)(…)

The example is in here: https://www.blockchain.com/btc/tx/63910fdfa84db96bd1f28fead4c32f97388d5368c10059d035aac3c5f72fcdc0 Actually, there are two outputs DUP HASH160 PUSHDATA(20)[...
1
vote
1answer
147 views

How does the hash of a coinbase transaction differ for the same miner?

Based on the format of a coinbase transaction described here: What is the format of the coinbase transaction?, I don't see how the all the coinbase transactions for a given miner do not all have the ...
1
vote
3answers
418 views

Getting the wrong txid for coinbase transactions

I'm trying to hash transactions to get the txid. I get the hex values from blockchain.info. I get the correct hash for all transactions except for the coinbase when I hash it twice. Is there something ...
1
vote
1answer
557 views

How does bitcoin reward who find the block?

After getting the getblocktemplate, hashing it, finding a solution and generating the proper message to submit to the blockchain, if i ever solve a block how does the network knows it was me and ...
1
vote
1answer
94 views

How to decode a coinbase transaction?

Below is block result of block height 200,000 { 'hash':'000000000000034a7dedef4a161fa058a2d67a173a90155f3a2fe6fc132e0ebf', 'confirmations':396774, 'strippedsize':247533, 'size':247533, ...
1
vote
1answer
252 views

Differentiating Output Script (scriptPubKey) Types

I am working on a little script to breakdown the data inside coinbase transactions. This is largely to improve my understanding of legacy and SegWit transactions (Given coinbase transactions have less ...
1
vote
1answer
109 views

What does this comment in Chainparams.cpp mean?

There is a comment in the Bitcoin source code under src/chainparams.cpp /** * Build the genesis block. Note that the output of its generation * transaction cannot be spent since it did not ...
1
vote
1answer
51 views

Fail to encrypt scriptPubKey in testnet

I have the following testnet wallet address: 2MsQEtPJ6JJZszMYrD6udjUyTDFLczWQrv9 Which I am trying to encode as pubkeyhash to the coinbase TX in testnet. When i run decode58, I get this ...
1
vote
1answer
250 views

Why maturity rule on coinbase tx requires too many confirmations w.r.t an arbitrary tx?

For an arbitrary tx, it is often said that 6 confirmations is sufficient. However, maturity rule states that coinbase tx can't be spent until it receives 101 confirmations. Why do we have this ...
1
vote
2answers
2k views

How create / generate a coinbase transaction for a new block?

I am coding a miner program with C, and right now I need some info of how create / generate a coinbase transaction to add to the block before submit it to the bitcoin network. Someone can indicate any ...
1
vote
1answer
69 views

What happens when a transaction script for mining is used for fund transfer?

So, through an odd bug in hacking some stuff onto Bitcoin, I encountered a peculiar thing. Basically, I managed to generate an transaction with 2 outputs. The first output was a typical txout DUP ...
1
vote
1answer
197 views

Coinbase transaction data

Can a coinbase transaction contain only data: 03 - length and 030303 - coinbase itself, or should the coinbase itself contain the height of the block?
1
vote
1answer
814 views

Just received a payment twice from coinbase

Edit: Looks like the error was with my wallet. When I contacted support, they said to have the wallet rescan the block chain. After doing that, my balance went back to 0. I'm new to bitcoin, but ...
1
vote
1answer
413 views

Why does the Genesis block coinbase input script push bits and the value 0x04 before the famous “Chancellor” message?

According to the Wiki, the input script of the Genesis block consists of these bytes: ...
1
vote
1answer
136 views

How does the Bitcoin network checks if the miner has changed the mining reward? [duplicate]

You know the mining reward is just a number in the code,what if a miner changed it?
1
vote
1answer
180 views

Merged mining: are there any ways to prevent it?

Supporting merged mining allows a cryptocurrency A to improve the security its blockchain (increase the hash rate) by accepting work done on the blockchain of cryptocurrency B through insertion of a ...
1
vote
1answer
829 views

Difference between coinbaseaux.flags vs. coinbasetxn.data?

After reading through most of the protocol, and trying to piece everything together, I'm still at a loss as to how some things work. For example, the difference between coinbaseaux.flags and ...
1
vote
1answer
344 views

if a coinbase reward isn't fully spent, can the coins ever be recovered? [duplicate]

If a pool mines a block and is mistakenly rewarding miners with less coins than they should be given, is it possible for others to recover those coins somehow? Or are they lost forever? For example, ...
1
vote
0answers
13 views

Where are Drivechain votes computed?

In the context of the Drivechain proposal, for UTXOs in miner-controlled escrows to be spent, they have to be voted on by each block over a large number of blocks, right? Now, how are these votes ...
1
vote
0answers
16 views

BIP0034 block height using python-bitcoinlib

I'm doing some experiments for finding coinbase height from freshly mined block which is received from ZMQ. tx_coinbase = CTransaction.deserialize(x('...
1
vote
1answer
139 views

Why is the bytestring 0xaa21a9ed used as the witness commitment header in SegWit?

As per BIP 141, the witness Merkle root hash is stored in a scriptPubkey field of a coinbase transaction output with a header consisting of the 4-byte string 0xaa21a9ed. What is the reasoning behind ...
1
vote
2answers
1k views

When creating a block, who actually generates the 25 bitcoins that act as a reward? [duplicate]

I realise that somebody who manages to find a new block in the blockchain gets 25 bitcoins as a "reward". Where do these bitcoins actually come from? How are they minted? How are they actually ...
1
vote
1answer
4k views

How to download wallet from coinbase

I got some newbie questions; I bought some bitcoin on Coinbase. I want to download the wallet, I'll probably put it on a USB then throw it in the safe. Could someone advise how I can download the ...
0
votes
1answer
58 views

Is there a maximum balance that a single address can hold?

Is there a maximum number of satoshis that a single address can control at a single time? I ask because when I generate regtest blocks to a single address, it's balance gets stuck at 1494999998350 ...
0
votes
2answers
674 views

SegWit witness commitment merkle root location

BIP 141 defines the commitment structure here What i am unsure about is the location of this data. I know it will be in scriptPubKey. Does this mean Coinbase tx will have more than one output? Also is ...
0
votes
1answer
340 views

Values for txid and vout for create a coinbase transaction

I want create a coinbase transaction to go with a new block minned by my program. I am creating it with the json-rpc command createrawtransaction. What's the values for txid and vout in this case?
0
votes
1answer
209 views

Extra bytes in coinbase

I am working on blk file parser and there is problem with one of coinbase tx. hex: 00000000: 0b11 0907 cf44 0e00 0000 0020 7f00 6e33 .....D..... ..n3 00000010: 4287 2eb8 c047 5d7c 16de 070e 5d88 ...
0
votes
1answer
369 views

Where is the extraNonce in this coinbase transaction here?

https://blockchain.info/tx/c1669dabe1bcadf50c4b712e42da7b3d3152aef53752731b04a4f585dde6f5f2 The coinbase states this: ...
0
votes
1answer
93 views

Why do not all the coinbase texts have the block heigh in it?

The coinbase text of #511329 starts with a, #511330 starts with b, #511331 starts with c... (and so on until z), but #511426 for example starts with F, the next one with m, the next one with "... ...
0
votes
2answers
812 views

Why does won't my bitcoin transaction complete? It has thousands of confirmations

My transaction has over 4000 confirmations and has been pending for over 3 weeks in my Coinbase wallet. The money is not available and shows as "pending". What is going on? If it had 0 confirmations I'...
0
votes
2answers
4k views

Unable to create raw transaction with json-rpc command

I am trying create a coinbase transaction with the command: {"jsonrpc": "1.0", "id":"jsonrpc", "method":"createrawtransaction", "params":[{"txid":"...
0
votes
1answer
189 views

When / how frequently do miners get paid for transaction fees? [duplicate]

When or how frequently do miners get paid for transaction fees?
0
votes
1answer
38 views

reconstruct block template from stratum mining.notify

I have a mining notification from a stratum pool. I wish to write a general script to extract the value of the block reward that the pool is taking. That is, reconstruct the block template, or at ...
0
votes
1answer
66 views

how recover my money in Coinbase Wallet?

I just wanna ask if there is possibility to recover my money in coinbase wallet. I forgot my recovery phrase but i remembered my btc wallet address and TXID. thanks
0
votes
1answer
25 views

Can a block have multiple coinbase transactions? Also is there a limit to the number of signatures a multi-sig transaction has or requires? [closed]

I am wondering if a block can be created with multiple coinbase transactions. The US government regulates mining pools that have control over the miner's wallets, so it would be fabulous if this could ...
0
votes
1answer
102 views

Is Coinbase transaction required to be signed?

I am trying to build a coinbase for mining with the following steps: 1-Create dummy Input and output. 2-Pass them to CreateRawTransaction as collection/ 3-Get a transaction back and fill the empty ...