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
2 answers
43 views

How are TXIDs determined from the raw hex data of a block? Also, what is the coinbase transaction?

Consider the hex data of block 170. The coinbase TXID is this: b1fea52486ce0c62bb442b530a3f0132b826c74e473d1f2c220bfa78111c5082 and the second TXID is: ...
user avatar
  • 113
1 vote
1 answer
165 views

What is OP_RETURN b9e11b6d?

While investigating some Bitcoin coinbase transactions, I notice that a lot of them have an output of the form OP_RETURN OP_PUSHBYTES_36 b9e11b6d… where ‘…’ is 32 bytes, probably a hash of something. ...
user avatar
0 votes
1 answer
30 views

Does testnet block 855996c9444827112b68c0606d8dfec62385d1b3448e412bc1c721633a641669 discard the block reward?

I am poking around in the testnet blockchain, and I saw a block mined recently where the outputs added up to just 0.04953672 BTC. Since there is no output for the 50BTC block reward, does that mean ...
user avatar
  • 147
0 votes
2 answers
62 views

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 ...
user avatar
1 vote
1 answer
344 views

How did the first transactions take place without balances?

If there were no bitcoins at first, how did a miner approve the transaction in the genesis block? I mean if there are no mined bitcoins (balances), how can a transaction take place? Also, I know that ...
user avatar
0 votes
2 answers
50 views

What databases is used to see if a transaction is valid?

When you check a transaction before adding it to a block what data source is used as a source to make sure all the coinbase transactions are valid.
user avatar
0 votes
0 answers
35 views

create coinbase transaction step-by-step

I installed Bitcoin core, created a wallet and a receiving address, and uses the RPC command getblocktemplate to get coinbaseaux and coinbasevalue, now what ? how do i create coinbase transaction ...
user avatar
  • 101
1 vote
2 answers
142 views

Don't understand fees on a particular bitcoin block

I am comparing and contrasting blocks 200000 and 164246 of the bitcoin blockchain (looking via the bitcoind api or https://www.blockchain.com/explorer?utm_campaign=expnav_explorer is fine). Looking at ...
user avatar
  • 13
0 votes
0 answers
27 views

Transactions on testnet3

Is this possible to test every type of address to make transactions on testnet3 ? Am I able to create a coinbase with mining and pay to Legacy, P2SH, or P2TR ?
user avatar
4 votes
1 answer
214 views

Will a post-subsidy block with no transactions include a coinbase transaction?

If a block: Is after the last halving, so there is no subsidy Includes no non-coinbase transactions, so there are no fees Must it include a coinbase transaction? If so, will it simply have no ...
user avatar
0 votes
0 answers
40 views

Coinbase transaction UTXOs are prohibited until 100 confirmed? By what?

I notice that many coinbase transactions(like in block 720,815) with locktime=0x00000000 and sequence=0xFFFFFFFF, which means UTXO could be spent immediately. There seems to be no limit to coinbase's ...
user avatar
0 votes
0 answers
20 views

questions about coinbase transacion

I am studing a coinbase transacion, and i have some questions. txid:6a67d404c25905f6774f2d136d9794ca0dc9db7d9b0acaa65933354b0e612652 for the scriptSig ...
user avatar
3 votes
1 answer
182 views

Why do early blocks contain OP_PUSHBYTES instructions in the coinbase input?

Early blocks contain OP_PUSHBYTES sequences in the coinbase input ScriptSig: Block 1: OP_PUSHBYTES_4 ffff001d OP_PUSHBYTES_1 04 Block 2: OP_PUSHBYTES_4 ffff001d OP_PUSHBYTES_1 0b Block 3: ...
user avatar
1 vote
2 answers
103 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
user avatar
0 votes
0 answers
17 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; ...
user avatar
0 votes
1 answer
58 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 &...
user avatar
8 votes
0 answers
171 views

Miners setting locktime in coinbase transaction

Some coinbase transactions have locktime values set. One such recent example is: { "txid": "5166cb509a5d786db33963a269ea08ff82a1c40d37d4fb828a394b0465cd5efd", "hash": ...
user avatar
0 votes
2 answers
116 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?
user avatar
  • 1
0 votes
1 answer
45 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 ...
user avatar
  • 103
0 votes
1 answer
32 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'...
user avatar
0 votes
1 answer
206 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 ...
user avatar
0 votes
1 answer
143 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 ...
user avatar
  • 107
0 votes
1 answer
47 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 ...
user avatar
  • 103
0 votes
1 answer
37 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 ...
user avatar
  • 176
0 votes
1 answer
105 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":...
user avatar
  • 223
5 votes
1 answer
535 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 ...
user avatar
  • 223
1 vote
1 answer
61 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?
user avatar
  • 223
1 vote
1 answer
75 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 &...
user avatar
  • 223
0 votes
1 answer
57 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. ...
user avatar
  • 223
0 votes
1 answer
26 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 ...
user avatar
  • 43
3 votes
1 answer
220 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 ...
user avatar
6 votes
1 answer
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 ...
user avatar
0 votes
2 answers
655 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? ...
user avatar
0 votes
1 answer
128 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 ...
user avatar
3 votes
0 answers
101 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_ =...
user avatar
  • 131
1 vote
1 answer
185 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 ...
user avatar
0 votes
1 answer
55 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 ...
user avatar
  • 3
2 votes
2 answers
331 views

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

Quote: "category" : "str", (string) The transaction category. "send" Transactions sent. ...
user avatar
  • 21
0 votes
1 answer
88 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 ...
user avatar
2 votes
1 answer
462 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?
user avatar
1 vote
1 answer
171 views

How to create bitcoin coin , coinbase transaction?

I know about createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"39jbHRLG6Z2KgXLHR3BWgbccZde1Moo15k"...
user avatar
  • 205
2 votes
1 answer
129 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",&...
user avatar
  • 176
2 votes
2 answers
185 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 ...
user avatar
  • 176
2 votes
2 answers
371 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":"...
user avatar
  • 205
2 votes
2 answers
281 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() << ...
user avatar
  • 449
3 votes
1 answer
63 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?
user avatar
  • 171
1 vote
1 answer
77 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 ...
user avatar
  • 9,819
0 votes
1 answer
76 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 ...
user avatar
0 votes
1 answer
65 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.
user avatar
  • 689
3 votes
1 answer
124 views

Can a coinbase transaction have a segwit output?

And more generally speaking, are there any restrictions on the output of a coinbase transaction?
user avatar
  • 689