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
1
vote
1answer
28 views

As required in BIP 34, how miners put the Block Height to their coinbase transaction

I created a coinbase transaction with the createrawtransaction method as follow: createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000",&...
1
vote
2answers
43 views

Merkle root with one transaction

I am trying to build a merkle root which contains only the coinbase transaction from bitcoind After creating the coinbase transaction i need to convert it to little endian, hash it twice and then put ...
2
votes
2answers
130 views

Why is the scriptSig formatted this way in the Genesis Block (inside function CreateGenesisBlock)

I was exploring the function static CBlock CreateGenesisBlock inside src/chainparams.cpp and I was looking at the way Satoshi created its scriptSig: txNew.vin[0].scriptSig = CScript() << ...
0
votes
2answers
173 views

What is the source of initial transactions of bitcoin?

Sorry, if I am wrong or silly! It is understood that: a) Satoshi Nakamoto sent the first transaction to developer Hal Finney on January 12, 2009, the genesis block contains 1,073 transactions and he ...
3
votes
1answer
399 views

What was the design decision behind that the coinbase field can have arbitrary data?

From what I learned, the coinbase field in the block reward transaction can carry any data (As long as smaller than 100b). Why that actually? Was it easier to implement in the beginning? I would just ...
4
votes
1answer
339 views

Why bother having limitations on Bitcoin Coinbase Transaction Scriptsigs?

There are a few limitations on the structure of the coinbase (reward) transaction in a block. There is only one input. vin.size() == 1 (source) It doesn't reference any previous output. vin[0]....
8
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 "...
3
votes
1answer
39 views

What does “generate” mean when it appears as a transaction's type?

What is "generate" as a bitcoin transaction type? Why are "generate" transactions labeled as "immature" for 100 blocks? Is this type of Bitcoin transaction spendable?
1
vote
1answer
51 views

A Bitcoin soft fork idea to help compress the blockchain

I've thought about a soft fork that can help storage costs. Why don't we force miners to embed the height of the TX Merkle tree in the first two bytes of the 4-byte block header version? It would ...
0
votes
1answer
39 views

Script_sig for coinbase transaction afbff1130b6fcbdceebbadfc48a842af1f03ee08a79e042b37fc467518b49a0f

I am currently developing a blockchain parser in Python, and it has been crashing in the file blk00006.dat for the coinbase transaction with the hash ...
1
vote
1answer
28 views

How does exchanges, such as coinbase handle off-chain transaction?

Does coinbase create a channel between each customer and coinbase itself? If i buy 10 USD of bitcoin from coinbase, where does the 10 USD worth of bitcoin come from? Does coinbase maintain a huge ...
0
votes
1answer
37 views

Is it possible, with bitcoin-core or btcd, to manually set the scriptSig field in a coinbase transaction?

I am talking about when using regtest or simnet modes. For context, it is so that I can create coinbase transactions with reproducible txids.
3
votes
1answer
83 views

Can a coinbase transaction have a segwit output?

And more generally speaking, are there any restrictions on the output of a coinbase transaction?
0
votes
2answers
70 views

Where and when should the coinbase transaction(including the miner key) be added?

I'm making a simple demonstrator program, pretty much a simplified bitcoin clone based mostly on the original whitepaper. Please bear with me, because I haven't found a way to describe the problem ...
0
votes
2answers
243 views

A different way to create coinbase transaction

AFAIK when a miner succeeds in creating a block, he puts a special transaction (coinbase) in it which spends no input and sends a fixed amount of BTC to an address he can arbitrarily specify. Instead ...
16
votes
2answers
8k 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 ...
3
votes
1answer
54 views

Was it always required for the Coinbase transaction to be the first transaction in a block?

The user tempo mentioned on another topic: "At least in the early protocol versions it was possible to put the coinbase transaction not on the top of the outputs." I have never heard about this ...
0
votes
2answers
927 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
0answers
22 views

Coinbase customer service [duplicate]

Does anyone know how to get a hold of a human being on the phone at coinbase? Or the contact info of a good crypto lawyer? Their customer support is lacking. I have a stuck transaction going on two ...
1
vote
1answer
216 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
276 views

How to decode a coinbase transaction?

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

I got a coinbase transaction and I don't know where it comes from

I received a small payment from a coinbase transaction, but I haven't been mining nor I have signed up on a mining pool. Does this happen when someone accidentally sets my address instead of theirs ...
3
votes
1answer
240 views

Why does this coinbase transaction have two op_return outputs?

I've been looking at coinbase transactions for fun and I came across one with two op_return outputs.. Does anyone know what the second one is? Also, I understand the first op_return is used to ...
1
vote
1answer
141 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 ...
1
vote
0answers
14 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 ...
0
votes
2answers
5k 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":"...
1
vote
0answers
26 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('...
0
votes
1answer
968 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
4
votes
1answer
437 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: ...
0
votes
1answer
33 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 ...
2
votes
1answer
74 views

Can a miner give themselves less than the maximum block subsidy if they wish to do so?

The current maximum block subsidy is 12.5 bitcoin. A mined block recently got rejected from full nodes after a miner tried to post the block subsidy as 13.26 bitcoin. But what about in the other ...
3
votes
3answers
380 views

How can I find the coinbase transactions where the bitcoins involved in a transaction were created?

I am exploring a transaction and if would like to know when was the money created, I guess I would end up with a lot of coinable transactions. For a certain transaction I could explore the previous ...
2
votes
1answer
64 views

When does miner insert the coinbase transaction?

When a miner creates the candidate block with transactions from the mempool, does he insert the coinbase transaction after winning the PoW or during PoW?
1
vote
3answers
510 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 ...
5
votes
6answers
2k views

Possible to do recurring payments with Bitcoin?

I'm a developer and using the Coinbase Ruby API to attempt to build a Coinbase application. I'm still coming to grips with how it all works. My question is, is it possible to set up recurring ...
3
votes
1answer
531 views

Where is the source code that allows new coins to be generated?

As per Bitcoin documentation, new coins are generated and brought into circulation when miner receive the reward. I am not talking about existing coins that are collected at the time of mining. Can ...
0
votes
1answer
159 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 ...
9
votes
1answer
4k 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; ...
0
votes
1answer
63 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 ...
3
votes
1answer
78 views

What is the maximum number of bytes the coinbase scriptSig (coinbaseaux) can hold?

Since the scriptSig of the coinbase transaction of a block can contain arbitrary data, what is the maximum number of bytes it can contain? I've seen various mentions of a limit around 100 bytes, but ...
1
vote
1answer
350 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?
2
votes
1answer
316 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 ...
2
votes
1answer
168 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
361 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
307 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 ...
3
votes
1answer
283 views

Why does Bitcoin block 526,591 have a 6.25 (instead of 12.5) block reward?

https://chain.so/block/BTC/0000000000000000002ba5a1fb96f93e6c215d62db4280f1cbd30e82c7c71fba https://blockchair.com/bitcoin/block/526591 It's an empty block (zero transactions), but the coinbase ...
0
votes
1answer
297 views

Variables in Coinbase Transaction & Decoding I/O Scripts

I just have a few questions to help better my understanding of the coinbase transaction. Example: ...
1
vote
1answer
196 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
1answer
120 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
228 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?