Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
111 views

What’s going on with this "NULL address input" transaction?

I was reading this from the Bitcoin wiki (https://en.bitcoin.it/wiki/From_address). I understand the concept of UTXOs and that any input to a transaction is an output from a previous transaction. I ...
2 votes
2 answers
275 views

Bitcoin-cli 0.19.1 Wallet not Sending from Addresses with Closest Amount?

I have a weird issue that I thought was fixed a few years back with Bitcoin wallet to reduce fees. I guess not, or I am missing something... My wallet received a transaction for the amount of 0....
4 votes
1 answer
233 views

How to identify a transaction input type?

I am currently working on a tool parsing every transaction of the bitcoin blockchain, using the getrawtransaction RPC call in verbose mode. My goal is to store them all in a database, while keeping ...
0 votes
0 answers
55 views

conditional spending from P2WSH address

What im doing wrong? Sinse I found out that Bitcoin is programmable money Im trying to use it potential. Using this site https://improvein.github.io/bitcoin-forge/?#/script/create I’ve created a ...
2 votes
1 answer
362 views

Segwit includes the input amount in the SignatureHash. What possible attack can this prevent?

Legacy transactions only include transaction components in the SignatureHash, but segwit transactions also add the amounts of inputs in the SignatureHash. Quoting from the Mastering Bitcoin Book: ...
0 votes
1 answer
36 views

Can the value in a prev_out be less than the amount of bitcoin to send?

Let's say I have a wallet that in total received 1 bitcoin over 10 transactions of 0.1 bitcoin each. If I want to send 0.5 bitcoin to another address, will it work having only one input with one ...
12 votes
1 answer
2k views

What does the sequence in a transaction input mean?

Following a transaction input: What is the meaning of the sequence number? What does the 4294967295 tell me?
1 vote
1 answer
48 views

Read the "value" being redeemed in a Bitcoin P2SH Script

Is there any way for a Bitcoin P2SH Script to read the amount of Satoshis being redeemed?
1 vote
1 answer
112 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 ...
1 vote
2 answers
89 views

Is the first input in a transaction always the sender's?

I'm trying to figure out what the input address is from a transaction with multiple inputs. Can it safely be said that the first input in the inputs of the transaction is the sender's?
5 votes
1 answer
1k views

Maximum number of inputs per transaction

In theory, what is the maximum number of inputs per transaction? Is it defined primarily by the maximum number we can store on the 9 byte varint? How big of a number can be stored on 9 bytes? Would ...
1 vote
2 answers
391 views

Do you sign only the previous output of transaction?

I need to confirm that I understand how transactions work in the Bitcoin network. Ok, so: Alice is a network node. Alice wants to send bitcoins to someone in the network. Alice is creating a ...
0 votes
1 answer
174 views

Multiple inputs with one signature

From this question I've learned that a transaction with N inputs requires N sign operations. But what if there a huge amount of inputs? E.g. I have a coffee shop and I sell 5000 pcs coffee every day ...
2 votes
1 answer
409 views

Maximum standard input script size

What is the maximum size for an input script so to be considered standard ? Looking at the Bitcoin Core source code it appears to be 10'000 byte, however reading here and there, it appears to be 1650 ...
5 votes
1 answer
864 views

Will all UTXOs eventually be worth 1 Satoshi?

If I want to spend 0.4BTC and I only have a UTXO for 1.0BTC, I will send 0.4BTC to the seller's address and 0.6BTC to my address. The seller has one UTXO and I have the other. One UTXO has become two....
2 votes
1 answer
1k views

Why are there multiple input addresses in one transaction and are they linkable to one single address?

For example, see this transaction: https://blockchain.info/de/tx/517c634fcf802bb8114516bc32718acf8a4e360decb7d93859e913f958d7bb6d In my understanding, the bunch of input addresses (usually) come from ...
0 votes
1 answer
1k views

How blockchain.info calculate the value transacted

Having this address: https://blockchain.info/address/19tqZYnP9youKtbene2FZiZtZyJYaLeBDw The last transaction says that this address received 0.0236 BTC But even knowing the value in and the value ...
1 vote
1 answer
68 views

Is the HashOfThingToSign (used in signature generation) the same for each input of a transaction or is it different for each input of a transaction?

Does a transaction with 50 inputs have 50 different hashofthingtosign, one for each input, or does it just have one that is used for all the input scripts?
4 votes
3 answers
4k views

What are the parts of a Bitcoin Transaction "Input" script?

All the terminologies I find seem rather confusing about what explains what and they usually miss a few steps. Example: Transaction 82d62d5f4e69ae8338c39b7ae2e1d33db59bdf62c869ded7344adc936bab8653 ...