Questions tagged [coinbase-transaction]

The "coinbase transaction" is the transaction inside a block that pays the miner their block reward. DON'T USE THIS TAG FOR THE SERVICE NAMED 'Coinbase'!

Filter by
Sorted by
Tagged with
1
vote
2answers
85 views

Is there any other form of coinbase transaction?

Could miners intentionally change the output address or reduce the output value before forming a block
0
votes
0answers
13 views

Building "coinbase transaction" [duplicate]

I'm messing around with a bitcoin miner and I'm stuck at building the coinbase transaction (to claim the rewards). Does anyone have any examples how to build it? I know it has to be in the merkletree; ...
0
votes
1answer
36 views

What "Data" should be inserted into the argument field of the "createrawtransaction" rpc command

This resource states that "data": "hex",(string, required) A key-value pair. The key must be "data", the value is hex-encoded data. Questions It says that the field is &...
6
votes
0answers
123 views

Miners setting locktime in coinbase transaction

Some coinbase transactions have locktime values set. One such recent example is: { "txid": "5166cb509a5d786db33963a269ea08ff82a1c40d37d4fb828a394b0465cd5efd", "hash": ...
0
votes
2answers
102 views

How do I find my missing bitcoin on Bitcore?

I recently tried to send bitcoin to my Bitcore wallet and it shows completed on Coinbase side, yet its not in my wallet. Anyone know what to do?
0
votes
1answer
32 views

Does `listsinceblock` show coinbase transactions on a watch-only address?

If I have a wallet where I've imported someone's address "A" as a watch-only address, and I run listsinceblock (the specific parameters may be irrelevant to this question), would I be able ...
0
votes
1answer
27 views

What are the incentives for miners to include a RSK merge-mining block hash in the coinbase?

The RSK blockchain is merge-mined with a block time of around 30 sek. Blocks are produced when bitcoin miners create valid block headers within the target. The RSK difficulty is far lower than bitcoin'...
0
votes
1answer
118 views

How to generate p2pkh ScriptPubKey for coinbase transaction

One part of coinbase transaction is p2pkh ScriptPubKey (according to the book i read). Coinbase transaction here refers to the first transaction in a block , not Coinbase software/company. Suppose i ...
0
votes
1answer
118 views

Some doubts regarding the structure of the Coinbase Transaction?

I was trying to understand the structure of coinbase transaction. I tried a few sources but I still have a few doubts regarding the structure with exactly 1 output. Here is what i know and the doubts ...
0
votes
1answer
40 views

Is the coinbase transaction the one and only means of minting new coins?

I'm new to blockchain and want to start my own private network. I've gotten a lot of information here about coinbase transactions and how they make mining "empty" blocks useful. I would like ...
0
votes
1answer
34 views

Did pools verify constantly the ouput of createrawtransaction when they build their coinbase transaction?

Pools creates their own coinbase transaction to pay their selves, and they begin the PoW by hashing different Headers, what prevent a hacker from changing the createrawtransaction with different ...
0
votes
1answer
80 views

Is my Bitcoin address valid for mining?

I am looking at the specific block at height 680175. When comparing the address which received the block reward # bitcoin-cli validateaddress 1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY { "isvalid":...
5
votes
1answer
446 views

Why are there more than two transaction outputs in a coinbase transaction?

In a coinbase transaction there are always more than two transaction outputs. The first transaction output contains the reward. The second contains the witness reserved value. But why are there other ...
1
vote
1answer
44 views

How is the witness reserved value set in a coinbase transaction?

In a coinbase transaction the second transaction output seems always to be a 32-byte witness reserved value. Is there any constraint on this value?
1
vote
1answer
55 views

How to set the sequence number in a coinbase transaction?

The sequence number seems to be used for locking a transaction in mempool. However, the coinbase transaction is not part of the mempool and thus the sequence number does not make sense. Is it just an &...
0
votes
1answer
48 views

Why does decoded block data not match coinbase transaction input?

I am looking at the specific block at height 680175. Via bitcoin-cli getblock 00000000000000000004dbd66fa71fdcd62658bf8c8e2e153521257ad5858c71 0 I obtained the serialized, hex-encoded block data. ...
0
votes
1answer
25 views

Mining pools repayment in a coinbase tx [duplicate]

Is it possible to add more outputs than one to the coinbase transaction? And if it is, can miners use them to repay users for renting hash to the pool? I think in this case they know who to pay and ...
3
votes
1answer
176 views

How to generate a coinbase transaction?

I am creating a miner in C++ for solo mining, and am struggling to create the proper coinbase transaction. Say I have a bc1 address, like bc1qfc7fameteuguetm0kfzypnvf2ju6wppdvj6tkc , what would be and ...
6
votes
1answer
1k views

Why is coinbase mentioned in a BIP?

I thought that BIPs were similar to Pythons PIPs. So I was confused when I read BIP 34 mentioning coinbase explicitly. The author, Gavin Andresen, seems not to have a connection to coinbase. I thought ...
0
votes
2answers
363 views

how do i convert bc1 address to hex? for coinbase transaction

Im trying to create a coinbase transaction so that I can do some mining. I have a bech32 bitcoin address, how do I convert that to hex so that I can include it in the coinbase transaction data? ...
0
votes
1answer
119 views

Why am i picking up 2 blockchains for my BTC address

So this is my address 38UPP6po1NJvNQoTavvTBzbRi1bKcyR7tZ And i am picking up 2 blockchains ,one for BTC and BCH ? I did a transfer a week ago and i am not sure why i cant see the funds in my coinbase ...
2
votes
0answers
70 views

How do I compute the coinbase in for a stratum pool?

I searched around Google and didn't get a correct answer, some one says I should use: hashed_coinbase_ = coinbase1 + extranonce + extranonce2 + coinbase2; And some other pages says: hashed_coinbase_ =...
0
votes
0answers
450 views

The price of coinbase Satoshies vs the price of mixed coins

I think that it is not pure fair that any of BTC Satoshies has the same price. And what do you think about the recently mined coins that perfectly clear, or coins that has some grey history behind ...
1
vote
1answer
145 views

Bitcoin in RegTest throw (bad-cb-height) at block No. 500

Mining in RegTest mode goes well until it's reach block height=500, then server return (bad-cb-height) any idea what is wrong with this coninbase: 02000000 01 ...
0
votes
1answer
46 views

How basecoin transaction is added to a block?

I'm new to blockchain and bitcoin. In my understanding, miners are trying to find a nonce that is added to a block, and then the hash of the block will have some zeros at first and the first ...
2
votes
2answers
285 views

Why does Bitcoin Core mention "Coinbase transactions", and what are they? [duplicate]

Quote: "category" : "str", (string) The transaction category. "send" Transactions sent. ...
0
votes
1answer
79 views

What`s a blocks coinbase value?

Under the bitcoin Protocol rules here: https://en.bitcoin.it/wiki/Protocol_rules#Transactions in the "block" messages section There is the pseudo-algorithm for validating a given block. On ...
2
votes
1answer
450 views

What happens to a coinbase transaction when no address is given?

The transaction block This coin base transaction has no valid address for reward. Did we lose that reward bitcoin forever?
1
vote
1answer
145 views

How to create bitcoin coin , coinbase transaction?

I know about createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"39jbHRLG6Z2KgXLHR3BWgbccZde1Moo15k"...
2
votes
1answer
100 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",&...
2
votes
2answers
136 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, do I need to convert it to little endian, hash it twice and then ...
2
votes
2answers
296 views

How create coinbase transaction with createrawtransaction?

I would like to generate a transaction with createrawtransaction such that it can be passed to submitblock along with the block header. I tried to use: [{"txid":"...
2
votes
2answers
250 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() << ...
3
votes
1answer
59 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
72 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
69 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 ...
0
votes
1answer
59 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
111 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
109 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 ...
3
votes
1answer
106 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 ...
1
vote
1answer
346 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
2
votes
1answer
880 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
371 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
20 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 ...
5
votes
1answer
610 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
0answers
68 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
61 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
150 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 ...
2
votes
1answer
101 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?
0
votes
1answer
277 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 ...