Questions tagged [coinbase-transaction]

The transaction that pays the miner their block reward.—Use [coinbase.com] to refer to the US-based cryptocurrency company.

Each block must contain exactly one coinbase transaction. The coinbase transaction pays out the block reward to the miner that created it as part of a block. The block reward consists of the newly created block subsidy and the transaction fees. The coinbase transaction is the only transaction whose outputs may pay out a larger amount than spent by the inputs (limited by the ).

The coinbase transaction must be the first transaction in the block, have exactly one input, and their outputs cannot be spent until 100 blocks later.

Related topics: , , , , ,

202 questions
7
votes
3 answers

ScriptSig (coinbase) structure of the Genesis Block

From original bitcoin c++ source code: // Genesis Block: // CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, hashMerkleRoot=4a5e1e, nTime=1231006505, nBits=1d00ffff, nNonce=2083236893, vtx=1) // …
3
votes
1 answer

How is the encoding of extraNonce done in the genesis block?

You can see here the coinbase of the genesis block txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp)); Broken down…
farmdve
  • 183
  • 1
  • 6
3
votes
2 answers

Can a coinbase transaction have more than one input?

I know that a coinbase transaction must have one input, but can it have more than one?
Casey Rodarmor
  • 524
  • 2
  • 9
2
votes
2 answers

How are newly created bitcoins are validated?

I'm trying to understand how Bitcoin works but there's a concept I can't get my head around. I understand that transactions are validated by checking the signatures of each input is valid. However how do you validate new bitcoins or rewards that…
2
votes
0 answers

What makes a valid scriptSig in coinbase?

Per BIP 34, the scriptSig should contain the height number in little endian. Suppose the target height is 777888, which is a0de0b in little endian. And, the extra data I want to append is a 5-byte world "hello", which is 68656c6c6f in…
Simon L
  • 111
  • 5
1
vote
1 answer

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 same hash assuming the miner was just using a…
connorwstein
  • 145
  • 4
1
vote
1 answer

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
1 answer

bitcoin-cli generatetoaddress
has 2 outputs

I have the following problem: currently i am testing in my local regtest I generated the following cb-tx for block at height 119:…
FearXenon
  • 15
  • 3
0
votes
1 answer

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 fields according to coinbase structure (specially…
0
votes
1 answer

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 "... regarding https://coin.dance/blocks Why do some of…
hardfork
  • 2,117
  • 1
  • 11
  • 28
0
votes
2 answers

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'd understand why but no one seems to have any…
0
votes
2 answers

Does a coinbase transaction's input field have a VOUT field?

In a coinbase transaction, the previous output field is 0000000000000000000000000000000000000000000000000000000000000000ffffffff because there is no previous output, the coins are generated. If you look at this coinbase transactions raw…
apchrkey
  • 53
  • 2