Questions tagged [output]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
648 views

Why are segwit transactions cheaper than legacy transactions?

What's the reason to make fees for segwit addresses lower, while keeping legacy addresses with higher fees? -- I'm interested in both, why segwit transactions are cheaper than legacy addresses, and ...
1
vote
1answer
18 views

How is the input and output fields serialised in a transaction?

I'm trying to write a parsing function to find the input and output fields in a serialised transaction. My problem is that I can find the number of inputs and outputs using the varint byte(s), but not ...
7
votes
2answers
1k views

What is this unusual transaction in the Bitcoin blockchain?

I found a transaction in the Bitcoin blockchain. The first output is unspent and has an abnormal Pkscript. What is this output and why does this output address have no transaction and balance on it? ...
0
votes
0answers
27 views

How can I be sure that anyone (i.e miner) will not change outputs from transaction? [duplicate]

I am wondering if ie. miner cannot change outputs from transaction. We have example of transaction: { "version": 1, "locktime": 0, "vin": [ { "txid": &...
1
vote
1answer
25 views

output descriptor serialization

I'm looking at the following official test vector: wsh(multi(1,xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB/1/0/*,...
4
votes
1answer
223 views

Will cross-input signature aggregation need a new output type?

If cross-input signature aggregation were to get implemented in a subsequent soft fork after Taproot's activation, would its use require a new output type?
0
votes
1answer
31 views

Sent BTC to Old Output Address

I sent BTC to an old Output address from a previous transaction and now I do not know where it has gone. Does anyone know how to fix this?
0
votes
0answers
25 views

Is there an API that accepts a transaction id/hash as an input, and returns all inputs and outputs for that transaction?

I'm looking for an API that accepts a tx id/hash as an input and returns all the inputs and outputs associated with that transaction hash. For example, the transaction described at https://www....
3
votes
1answer
32 views

Can you have a transaction without a change output?

While reading about the fees here https://metamug.com/article/security/bitcoin-transaction-fee-satoshi-per-byte.html The article said that "In the simplest case, you'll have one input and two ...
2
votes
1answer
115 views

Retrieve all Unspend Output given a priv key

Is it possible to retrieve all Unspend Output transaction given the private key? I have noticed that different wallet give me different balance for the same Private Key. For instance, Atom and BitPay ...
1
vote
1answer
53 views

Why does the value range of outputs need to be restricted?

In the 'tx messages' section for protocol rules we have Each output value, as well as the total, must be in legal money range For each input, if the referenced output does not exist (e.g. never ...
1
vote
1answer
43 views

How does a miner verify a transaction which is spending an output of another transaction in the same block?

It is mentioned in this post that: If all validation of all transactions in a block succeeds, the consumed inputs are removed from the database, and all outputs of those transactions added as fresh ...
-1
votes
1answer
123 views

Please help out I send 109k to my client he was able to receive $50,000 please help

I send a bitcoin transaction of all coin my wallet which is $109,180 to my client wallet address giving to me. But he received $50,000 in is wallet address. And I sent all the coin my of 109180. ...
2
votes
2answers
161 views

What exactly is the "vout" field?

This is driving me nuts. Through trial-and-error, asking numerous people and attempting to read endless articles and manuals, I've come to the conclusion that the "transactions" listed by ...
4
votes
1answer
144 views

What does the index of an UTXO stand for?

For example, here is the output of an API I hit with one of my testnet UTXOs. What is the meaning of the index field in this context ? "utxo":[ { "block_id":1899516, ...
1
vote
1answer
82 views

Transaction Output Order

Suppose I generate a transaction with 5 outputs. Is there a deterministic way to know how the outputs will be ordered on chain (their .n values) or will they simply appear in the order in which I ...
2
votes
1answer
124 views

Refer to UTXO by output index or output full address in blockchain?

I'm writing my own simple crypto and wondering whether input in a transaction should refer to unspend output only by it's TXID and vout (index in outputs vector in a transaction) OR by it's TXID and ...
1
vote
1answer
45 views

How to identify the sender from crypto payments

I want my users to deposit crypto into the website for credits, but the biggest issue is getting the input address (the user's address). How can I identify the sender from the transaction (since there ...
2
votes
1answer
43 views

Transaction parsing - Satoshi value

how exactly is the satoshi value in a raw transaction calculated to decimal? Because on blockchain.info, I cannot figure out how they parse the raw transaction from that value to the JSON result. I ...
4
votes
2answers
515 views

Why does vout sometimes not have address?

I am trying to parse all transactions. I found that some transactions do not have addresses in their vout. There are two situations that vout does not have addresses. The first one is the miner reward....
0
votes
2answers
38 views

Check txout against the circulating supply instread of MAX_MONEY

https://github.com/bitcoin/bitcoin/blob/aaaaad6ac95b402fe18d019d67897ced6b316ee0/src/consensus/tx_check.cpp#L27 If txout.nValue is more than the circulating supply and less than MAX_MONEY, ...
0
votes
2answers
78 views

Why is 'script' used in a transaction instead of the output address?

I see transactions contain script for each output, but this "script" seems to be deterministically derived from the address associated with the output. Why does the bitcoin protocol opt for the use ...
4
votes
2answers
337 views

Is it possible to write a transaction of bitcoins, having only pen, paper and a private key from the address with some unspent outputs?

In my last answer I have done an allegation which I want to be proven or disproven. If this work possible, how much paper does it require? What kind of software needs Bob to send a transaction to ...
2
votes
0answers
83 views

Address final balance is 0 after receiving 0.003 BTC

I generated a new BTC address (address A). I tried to send 0.003 BTC to address A. After sending them from my coinnomi wallet, the balance of address A remains 0 and from output seems that 0.003 BTC ...
3
votes
1answer
108 views

Can a coinbase transaction have a segwit output?

And more generally speaking, are there any restrictions on the output of a coinbase transaction?
3
votes
1answer
147 views

Why is a 20 byte hash acceptable in p2wpkh but p2wsh needs 32 bytes?

Why is it acceptable to use a 20 byte hash to represent single-sig witness programs whereas a 32 byte hash is used for pay to witness script hash?
0
votes
2answers
125 views

Why same output address is invalid in a transaction on Bitcoin Core?

I'm studying Bitcoin Core currently. I found incomprehensible code, that shows making a transaction is rejected if there are same output addresses in a transaction. See Fig1, Fig2 Origin source code ...
1
vote
0answers
27 views

How does a Drivechain output work?

It is said that Drivechain works by sending a transaction output to a miner/hashrate-controlled escrow. I know it works by allowing miners to vote over a large number of blocks on transactions, that ...
1
vote
0answers
49 views

How many TXO have been created in total?

I've seen some statistical data about the Bitcoin UTXO number (around 61M currently). I was wondering how many TXOs (including spent and unspent) there were in the complete history of Bitcoin?
0
votes
1answer
92 views

OP_EQUAL not working properly

I went to https://siminchen.github.io/bitcoinIDE/build/editor.html to try some bitcoin scripting and I wrote this script: <1PUzZ61FSVTn12CafJC85Vy1ts3BoFcXdU> OP_HASH160 <...
0
votes
2answers
31 views

Where are the non-scriptPubKey outputs in the chainstate leveldb?

I read https://bitcoindev.network/understanding-the-data/ and it explain that the leveldb of the chainstate contain transaction with at least one unspent output. And it has "The scriptPubKey and ...
0
votes
1answer
43 views

How can I find the transaction that spends a specific output via an API?

I am wondering how I can find the transaction that spends a specific output (for a large number of transactions). So for example, I have a transaction like the following: https://www.blockchain.com/...
3
votes
2answers
149 views

Why is the value field 8 bytes in transaction output when it can be achieved with 7 bytes?

Bitcoin uses a 8 bytes value field in the transaction output. However, the total supply of bitcoin is capped at 21M. Theoretically, even if all the 21M bitcoins are transferred to a single address, ...
1
vote
1answer
72 views

What does "Nonstandard output" mean on Tradeblock transaction page?

I tried to send bitcoin but the recipient hasn't received it. The trade block page shows "Nonstandard output" under outputs as shown in the link below: Tradeblock page for transaction I used an ...
1
vote
1answer
58 views

Two question about bitcoin transaction signing

I know that the signing should use public key, what if the private key is used in signing the output? Does that mean anybody can use the money in your wallet? And is there any difference between P2PKH ...
0
votes
1answer
158 views

Newly generated coins

New to BTC world so my question is how and what can I do with newly generated coins what's the process and how to see balance of that in wallet? Can I send those to paper wallet
-1
votes
1answer
117 views

Are there minimums for output values and transaction fees in Bitcoin?

The article "The Bitcoin Lightning Network Summary" by lightning.network mentions: "Lightning enables one to send funds down to 0.00000001 bitcoin without custodial risk. The bitcoin blockchain ...
-1
votes
1answer
115 views

How do these inputs/outputs make sense for this transaction?

Using coinbase, I transferred $1 in BCH to my friends BCH address. Now I am studying the transaction on a blockchain explorer as a learning exercise. See here: https://blockchair.com/bitcoin-cash/...
0
votes
1answer
27 views

Why does this transaction results in more than 1 unspent output?

This transaction results in 6 outputs in total. Why did it end up with having 4 unspent outputs? I read this answer from another question, and wondering, could it be because the user actually chooses ...
0
votes
2answers
80 views

Why does this transaction results in only 2 unspent output (and no spent output)?

This transaction is from one of the latest block. However I don't understand why it seems to be just dividing a single transaction without being spent and transferred to someone else.
2
votes
2answers
562 views

What are the hashes in Unspent outputs?

I am a newbie to Bitcoin. Looking at curl https://blockchain.info/unspent?active=1Cdid9KFAaatwczBwBttQcwXYCpvK8h7FK I guess that the script is the owner's address.I am not sure about this. "...
5
votes
2answers
276 views

what's the point of "n" in "vout"? getrawtransaction

It seems like "n" is the index, is that true? If that is the case, why is the "n" key necessary? Example: bitcoin-cli getrawtransaction ...
0
votes
1answer
212 views

Generating Output Script from Bitcoin.js or other Javascript Library

I'm attempting to use the Ledger Wallet API to sign a multi-sig transaction. The API works as follows: var inputs = [ [ "71f97fa2a21486ecd99674a8ae068d92acd2e9db49c199473be39984e6cbe0f6", "00000000"...
0
votes
1answer
215 views

I seem to have too many unspent outputs for my given balance. What am I missing?

I have an address on the testnet. I started out with 1.3 btc. I then sent 0.5 btc to another address. My balance is now 0.8. OK, that makes sense. I expect now to have one UTXO which was the 0.8 in ...
1
vote
2answers
42 views

How output transaction works in Bitcoin?

Click here for reference. Note also that an output can be used only once. That's why there's a concept of "change address" in the bitcoin ecosystem: if an output of 10 BTC is available for me to ...
0
votes
1answer
74 views

Why do I get 5 bytes worth of 0x00 hex values in both outputs?

From the hex generated by the createrawtransaction command, I understand that the following is the output value: ...
0
votes
2answers
53 views

Breaking down the hex value for output 1

Within the hex generated by createrawtransaction, I am trying to understand the output 1 hex. The output 1 hex I have is: 76a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788ac Spacing out the ...
1
vote
1answer
379 views

How to find out the requirements for spending an output script?

How do you find out the requirements to spend an output script? Do you decode the hash?
3
votes
1answer
122 views

At most two outputs according to Bitcoin whitepaper. Multiple outputs in real transactions. How come?

The original Bitcoin whitepaper mentions that there can be at most two outputs: Normally there will be either a single input from a larger previous transaction or multiple inputs combining ...
0
votes
1answer
50 views

Could someone explain how the TX operation here works?

I know this is a BCH address, but it's the best example I could find. The same concept holds for BTC, so understanding what's going on is relevant. https://explorer.bitcoin.com/bch/tx/...