Questions tagged [coinbase-transaction]

A "coinbase transaction" pays the miner their block reward. Use [coinbase.com] to refer to the service.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

Is the "witness commitment" introduced in bip-0141 optional?

In BIP-0141, it states: a new block rule is added which requires a commitment to the wtxid. the coinbase's input's witness must consist of a single 32-byte array for the witness reserved value. ...
  • 71
0 votes
1 answer
16 views

What files/code should I look for iOS Coinbase Wallet Seed Phrase?

I never wrote down my seed phrase for Coinbase wallet and used FaceId to Login for months. One day the app did an update which forced me off the app and prompted me for the seed phrase to login. I ...
0 votes
1 answer
53 views

Can a coinbase adhering to BIP-0034 (block v2) only pay P2PKH addresses?

I've been working on a bitcoin miner that uses BIP-0034 (block v2). I'm confused about the coinbase transaction of block v2. Does block v2 only accept P2PKH type of address to allow me to receive a ...
1 vote
0 answers
25 views

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 ...
  • 71
0 votes
0 answers
36 views

Retrieving stolen bitcoin [duplicate]

I am Stefan, I'm new to the world of digital money and all the technological advancements associated with it. I know some people invested in cryptocurrencies and made a significant amount of profit by ...
1 vote
2 answers
50 views

What are the mean, median, range, limits and trends in the size of coinbase transactions?

I'm attempting to estimate how much "spare capacity" there is for merged mining protocols. As I understand it the scriptSig in the coinbase transaction must be less than 100B. However, the ...
  • 336
0 votes
0 answers
25 views

Which merged mining method is preferable? What is the latest specification/practice?

If I'm right, there are at least two methods for miners to include a reference hash to a merge mined block in the coinbase transaction: Commitment hash in an OP_RETURN out put in the coinbase ...
  • 336
0 votes
2 answers
54 views

Cheapest way of deposit way, exchanges and exchange payment method to buy crypto currencies?

My question basically is what is the cheapest way to buy crypto currencies? So far I checked out coinbase and binance. There are different ways to buy crypto currencies. First decision regarding the ...
  • 101
4 votes
1 answer
83 views

Can a miner open a Lightning channel with a coinbase output?

Assuming that the funding transaction uses a P2WSH output, can we open a channel by providing that standard 2-of-2 multisig as the coinbase output?
  • 75
3 votes
2 answers
245 views

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?
0 votes
0 answers
34 views

How to hash coinbase transactions of recent blocks

For earlier blocks, if I hash the raw data of the first transaction in the block, I get back exactly the transaction hash. However, for recent blocks, this seems no longer work. Can someone give a ...
0 votes
2 answers
107 views

Meaning of SigScript in Satoshi Nakamoto's "Genesis" coinbase transaction

The Satoshi's coinbase transaction includes this following scriptSig: ...
  • 85
4 votes
2 answers
1k views

Why does IsCoinBase() check if there is exactly one input?

In the Bitcoin Core source code there is a function to check if a given transaction is a coinbase or not: bool IsCoinBase() const { return (vin.size() == 1 && vin[0].prevout....
1 vote
2 answers
121 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: ...
  • 147
2 votes
1 answer
261 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. ...
0 votes
1 answer
47 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 ...
  • 147
0 votes
2 answers
110 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 ...
1 vote
1 answer
362 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 ...
0 votes
2 answers
53 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.
0 votes
0 answers
61 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 ...
  • 101
1 vote
2 answers
151 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 ...
  • 13
4 votes
1 answer
224 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 ...
0 votes
0 answers
62 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 ...
3 votes
1 answer
226 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: ...
1 vote
2 answers
113 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
1 answer
113 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 &...
10 votes
1 answer
242 views

Miners setting locktime in coinbase transaction

Some coinbase transactions have locktime values set. One such recent example is: { "txid": "5166cb509a5d786db33963a269ea08ff82a1c40d37d4fb828a394b0465cd5efd", "hash": ...
0 votes
2 answers
123 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?
  • 1
0 votes
1 answer
48 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 ...
  • 103
0 votes
1 answer
39 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
1 answer
313 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
1 answer
156 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 ...
  • 107
0 votes
1 answer
54 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 ...
  • 103
0 votes
1 answer
43 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 ...
  • 176
0 votes
1 answer
123 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":...
  • 223
5 votes
1 answer
618 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 ...
  • 223
1 vote
1 answer
89 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?
  • 223
1 vote
1 answer
91 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 &...
  • 223
0 votes
1 answer
64 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. ...
  • 223
0 votes
1 answer
28 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 ...
  • 53
3 votes
1 answer
282 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
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 ...
0 votes
2 answers
963 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
1 answer
140 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 ...
3 votes
0 answers
149 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_ =...
  • 131
2 votes
1 answer
254 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
1 answer
63 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 ...
  • 3
2 votes
2 answers
364 views

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

Quote: "category" : "str", (string) The transaction category. "send" Transactions sent. ...
  • 21
0 votes
1 answer
246 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
1 answer
481 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?