Questions tagged [input]

16 questions
12
votes
1 answer

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?
Michael
  • 175
  • 5
5
votes
1 answer

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 such a transaction even fit in a block if it had…
Pedro
  • 385
  • 2
  • 9
5
votes
1 answer

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. As time passes and more transactions occur, the…
dentaku
  • 53
  • 2
4
votes
3 answers

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 Found at…
Mine
  • 1,416
  • 2
  • 16
  • 27
2
votes
1 answer

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 byte. If that's the case, if the input script is…
Daniele
  • 45
  • 3
2
votes
1 answer

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 a single HD wallet. I.e. a transaction input…
dsayx
  • 21
  • 3
2
votes
1 answer

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: Segregated Witness signatures incorporate the value…
2
votes
2 answers

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.54530200 BTC, yet when I went and sent 0.51986042 BTC…
1
vote
1 answer

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 can be multiple inputs) as well as the amount…
Lenneth
  • 21
  • 1
1
vote
2 answers

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?
Lenneth
  • 21
  • 1
1
vote
2 answers

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 transaction using her wallet. Every transaction has…
ddavi031
  • 459
  • 2
  • 9
1
vote
1 answer

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?
Mine
  • 1,416
  • 2
  • 16
  • 27
1
vote
1 answer

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?
FraMog
  • 41
  • 1
0
votes
1 answer

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 for $1 each. If I want to transfer my daily income…
0
votes
1 answer

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 out I am not able to calculate that…
Enzo
  • 159
  • 1
  • 7
1
2