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
31
votes
2answers
11k views

What is the coinbase?

I searched the bitcoin wiki and found references to coinbase, but no clear cut explanation of what exactly it is. I know that miners can tag their coinbases (that is how some sites tell who mined a ...
24
votes
2answers
6k views

What is the block maturation time?

I was reading the wiki article about the blockchain and I didn't understand the part in bold: When a block becomes an orphan block, all of its valid transactions are re-added to the pool of ...
14
votes
2answers
7k views

What is the format of the coinbase transaction?

I'm trying to understand the format of the coinbase transaction. I've read that it is arbitrary and not specified. I'm wondering because I need to generate mining work and create an internal pool. As ...
9
votes
1answer
3k views

Why does the default miner implementation use pay-to-pubkey?

Looking at the v0.9.3 source in miner.cpp: CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey) { CPubKey pubkey; if (!reservekey.GetReservedKey(pubkey)) return NULL; ...
18
votes
4answers
7k views

How can one embed custom data in block headers?

Some mining pool admins put custom data in block headers, like prayers. How do they do that? Where can I see that data for myself?
3
votes
1answer
360 views

Duplicated hash values in mining reward

This transaction is contained in two MainChain-Blocks: https://blockchain.info/tx/e3bf3d07d4b0375638d5f1db5255fe07ba2c4cb067cd81b84ee974b6585fb468 On Blockexplorer there is a note of this anomaly: ...
15
votes
1answer
1k views

What happens when a miner does not claim all fees/generated coins?

Suppose that a miner for some reason has the generation transaction of their blocks not take all the possible coins. This can happen for a variety of reasons, almost all of which are bugs: An off-by-...
7
votes
1answer
2k views

Where, in the code, in the Satoshi client is 21 million cap implemented?

Which fragment of the Satoshi client is verifying if announced block has a valid reward? I mean, we now live in the 25 BTC reward period. I guess client after receiving a newly minted block, does ...
2
votes
1answer
446 views

OP_RETURN in a coinbase transaction?

Hey looking at this transaction I'm confused why there are two outputs and why one of them is labelled with OP_RETURN
6
votes
1answer
662 views

Can a miner steal another one's block?

Say we have two miners, Alice (an honest miner), and Eve (an evil miner). My understanding is that when Alice mines a block she advertises it to the network, and once it's part of the longest block ...
7
votes
2answers
2k views

What is the format of coinbase input scripts?

The input script of the coinbase transaction of block number 1 (right after the genesis block) looks like this: 04ffff001d010b How do I recognize this as a coinbase transaction? Do I simply know ...
1
vote
2answers
929 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?
7
votes
1answer
3k views

Why do miners seem to be using consecutive letters for the Coinbase transaction text?

If you look at coin.dance, it looks like the coinbase transactions text start with consecutive letters. For example, block 478529 starts with "AM" and 478530 starts with "BM" and 478531 starts with "...
4
votes
1answer
894 views

Is it true the genesis block reward can't be spent forever? [duplicate]

Is the genesis block reward forever unspendable?
11
votes
1answer
748 views

Is there a limit to how much extra data can be put into blocks via scripts?

According to this answer, miners can include extra data in blocks. Is there an upper bound to how much a miner can add? How much?
4
votes
1answer
2k views

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=...
4
votes
2answers
331 views

How does the network apply credit for created blocks?

First post. I must say in advance thanks to everyone for all the great conversation and help and software so far. It's really helped me get familiar with bitcoins and bitcoin mining. I have a ...
3
votes
2answers
1k views

How to make genesis block transaction spendable?

I read this question Why can’t the genesis block coinbase be spent? . It says because of some quirk (the genesis block coinbase transaction is not added to the global transaction database) genesis ...
3
votes
1answer
775 views

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<unsigned char>((const unsigned char*)pszTimestamp, (...
1
vote
1answer
340 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, ...
0
votes
1answer
321 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
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
543 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 ...
0
votes
1answer
360 views

After creation, what I have to do with a coinbase transaction?

I have create a coinbase transaction successfully with the command: createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"...