Questions tagged [coinbase-transaction]

The transaction that pays the miner their block reward.—Use [coinbase.com] to refer to the US-based cryptocurrency company.

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

How many nodes and edges does the UTXO-coinbase graph have?

Imagine a graph where the leaf nodes are the UTxOs, the intermediate nodes are spent TxOs (vout), the root nodes are the blockheaders and coinbase merklepairs, and the edges are the data required to ...
-1 votes
1 answer
197 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
59 views

How to create coinbase? How to use witness?

BIP141 adds a new rule called "witness commitment". The document says: "The commitment is recorded in a scriptPubKey of the coinbase transaction." I didn't quite understand what ...
0 votes
1 answer
57 views

How to calculate Merkle Root? Need to reverse?

I downloaded the necessary information and made the coinbase. Then I calculated the merkle root... But I always get an error message when I submit a block: "bad-txnmerkleroot". Tere is my ...
1 vote
1 answer
1k views

Just received a payment twice from coinbase

Edit: Looks like the error was with my wallet. When I contacted support, they said to have the wallet rescan the block chain. After doing that, my balance went back to 0. I'm new to bitcoin, but ...
7 votes
2 answers
1k views

What is the Block 1,983,702 Problem?

The issue, transition to requiring block height in block coinbases, was discussed back in 2012, however I just stumbled upon it, and would like to understand more about its significance.
5 votes
1 answer
120 views

When was the first OP_RETURN output in a coinbase?

One way to deal with the BIP34 does not imply BIP30 issue, aka the Block 1,983,702 Problem, is a soft-fork that makes the SegWit commitment mandatory. [0] There are no OP_RETURN outputs in any of the ...
0 votes
1 answer
45 views

How to set the output script of coinbase transaction

I found that the "getaddressinfo" command in RPC can get pubkey and scriptpubkey. My address pubkey scriptpubkey are: address='bcrt1q95h0le6kknpnjp4c29cau03gvdyxd35zug30yr' pubKey='...
1 vote
1 answer
52 views

Is a block without transactions valid: also not including a coinbase?

We know blocks can have one transaction: the coinbase. Some call this an "empty block". But I'd argue technically there is a transaction. Question: is a block WITHOUT A COINBASE a valid ...
0 votes
2 answers
75 views

What is TXID?Is it used to calculate merkleroot [duplicate]

I downloaded the block template where each transaction contains 'data', 'txid', 'hash'. I read in some articles that the Merkelroot is calculated using 'txid'. Is true? Why txid not hash, and what's ...
6 votes
3 answers
883 views

Is it possible for the coinbase transaction in block 164384 to be duplicated in block 1983702?

BIP34 requires coinbase transactions to begin with a data push of the block's height. The coinbase transaction in block 164384 (3aa03753fc) happens to start with OP_PUSHBYTES_3 d6441e which is the ...
1 vote
1 answer
219 views

Why is the bytestring 0xaa21a9ed used as the witness commitment header in SegWit?

As per BIP 141, the witness Merkle root hash is stored in a scriptPubkey field of a coinbase transaction output with a header consisting of the 4-byte string 0xaa21a9ed. What is the reasoning behind ...
0 votes
1 answer
69 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. ...
0 votes
2 answers
861 views

SegWit witness commitment merkle root location

BIP 141 defines the commitment structure here What i am unsure about is the location of this data. I know it will be in scriptPubKey. Does this mean Coinbase tx will have more than one output? Also is ...
3 votes
1 answer
143 views

Are all transactions, whether SegWit or non-SegWit, part of the commitment in a coinbase transaction?

A merkle root in a block header is a way to commit all transactions in that block. However, since it does not cover transaction witness data, another commitment needs to be made in a coinbase ...
35 votes
3 answers
11k 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 ...
5 votes
2 answers
2k views

Why would a miner put an OP_RETURN in a coinbase transaction?

I’m looking at this coinbase transaction. I'm confused why there are two outputs and why one of them is labelled with OP_RETURN.
2 votes
3 answers
620 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":"...
3 votes
1 answer
149 views

Processing bitcoin reward block's input transaction

I'm parsing the block response of my bitcoin node and everything is going ok. The only thing I don't understand is how to parse the input transaction of the block reward. This is the array that I see ...
2 votes
1 answer
138 views

Why is the data format for block height in coinbase scriptSigs inconsistent for heights 1-16?

BIP-34 claims that in coinbase transactions, the scriptSig should contain the block height. It says the format of this is "serialized CScript", i.e. a byte indicating the length of the ...
3 votes
2 answers
294 views

Orphan block payment maturity

I know that the outputs coinbase transaction can be spent only after receiving 100 confirmations. So is it that a miner who mined an orphan block receives the outputs of coinbase transaction but can ...
6 votes
2 answers
851 views

Why are coinbase transaction outputs greater than reward?

If the sum of the coinbase transaction's outputs must be less than or equal to the current reward (25 btc currently), why in practice do blocks have a slightly higher coinbase transaction output (for ...
1 vote
1 answer
86 views

bitcoin-cli generatetoaddress <numberofblocks> <address> has 2 outputs

I have the following problem: currently i am testing in my local regtest I generated the following cb-tx for block at height 119: ...
2 votes
1 answer
233 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 ...
3 votes
1 answer
51 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 ...
1 vote
0 answers
129 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('...
3 votes
2 answers
265 views

Where was the term "coinbase" first coined, who first used it?

The white paper doesn't mention the term "coinbase" (in reference to the reward transaction). I see the first version of the software main.cpp does: // First transaction must be coinbase,...
0 votes
1 answer
77 views

What fields of a coinbase transaction can be empty?

Is it correct to say: As the coinbase transaction doesn't need to identify an output, there is no need for the input scriptSig. Would a block be accepted in which the coinbase transaction has an ...
0 votes
3 answers
1k 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? ...
4 votes
2 answers
375 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 ...
14 votes
1 answer
557 views

Why are miners setting the locktime in coinbase transactions?

Some coinbase transactions have locktime values set. One such recent example is: { "txid": "5166cb509a5d786db33963a269ea08ff82a1c40d37d4fb828a394b0465cd5efd", "hash": ...
3 votes
1 answer
118 views

Different balances between fullnode and bitcoin explorer

I looked up Block 200 at https://www.blockchain.com/explorer/blocks/btc/200 and found out that coinbase transaction was made and sent 50 BTC to 1HwmP33SaknLYShXfjVU8KmVThU3JiuVgH. But if I check utxos ...
3 votes
1 answer
143 views

How can I look at the genesis block raw txn?

If I try to look at the txn in the genesis block, I get: root@0eef0ed7601c:/home/bitcoin# bitcoin-cli getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b error code: -5 ...
2 votes
2 answers
368 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: ...
2 votes
2 answers
183 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 ...
0 votes
1 answer
47 views

Does the miner determine the amount of coinbase transactions manually?

When the miners try to extract the block with the submitblock method, do they determine the amount(value) of coinbase by themselves? Or does the network automatically give them some amount as a reward?...
1 vote
0 answers
45 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 ...
1 vote
2 answers
99 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 ...
1 vote
1 answer
255 views

What is coinbase script (arbitrary data)?

According to this site, in the coinbase input part, What is the coinbase script and where did it come from? It is said that this is a arbitrary data, but I don't know how this string is generated? ...
1 vote
1 answer
62 views

BIP 32 Root key for connecting wallets

I have a question, a broker Xeroxfx.org asked me to create the BIP 32 RK to connect wallets for a quicker transaction. Is this real, or can he now steal from my wallet? THX Phillip
0 votes
2 answers
116 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 ...
3 votes
1 answer
254 views

Does the coinbase transaction have inputs?

I was wondering if I can add dummy data into a coinbase transaction’s inputs. Is it possible to do this? Can you insert invalid input scripts into a coinbase transaction? Can you add multiple inputs ...
0 votes
1 answer
73 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 ...
2 votes
0 answers
98 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 ...
7 votes
3 answers
4k 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=...
1 vote
3 answers
529 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)[...
4 votes
1 answer
95 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?
3 votes
2 answers
320 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?
1 vote
2 answers
260 views

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

The Satoshi's coinbase transaction includes this following scriptSig: ...
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....