Questions tagged [transaction-input]

Questions about the mechanics of redeeming a UTXO in an input script.

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

P2SH-Multisig transaction not going through

I have some funds locked in a testnet P2SH address which requires 2-of-3 signatures. This is the address: 2NEKRqUqoDtsELzpBa5wuWEiJeVbio5cSa2 and the 3 keys: #1 - ...
1
vote
1answer
50 views

What exactly is signed in "prev_out"?

What is signed by scriptSig? I use my private key to sign data from the unspent transaction? I sign the "prev_out" object? I read that the signature in "prev_out" is there to ...
1
vote
1answer
21 views

What is the exact size and weight of a 2-of-2 P2WSH input?

I'm proofreading an article mentioning the cost reduction of P2TR for Lightning channels in comparison to P2WSH. To that end, I'm looking for the precise weight, vsize and serialized length of a 2-of-...
1
vote
1answer
87 views

What is "Witness"?

What really is "Witness"? I saw this data in blockchain and can not identify what it really is. Here is the dump of transaction for example. TX hash = ...
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 ...
0
votes
1answer
27 views

Understanding transaction input and ouput

The definition of bitcoin transaction input and output that is there on the web is: Input = address from which money was sent, Output = address to which money is received 1. But when I looked at one ...
0
votes
1answer
70 views

Confused about input and output spending limitations and consolidation

I am sure the answer to this is trivial to someone who already knows the answer, but not to me. I recently wanted to spend some received bitcoin for the first time and discovered that the associated ...
0
votes
1answer
48 views

What does this Pubkey mean?

I just started learning about Bitcoin, and am sorta familiar with p2pk and p2pkh. I just found this input on a Bitcoin blockchain explorer: It looks like the Pkscript can be "solved" (I'm ...
0
votes
2answers
36 views

How 1 address can create 14 inputs in output transaction to 1 direct address?

Check this address 1NM3apKLeDGKiFsd6gu1o4nh52efi38iEv The reason of this extremely high fee because of 14 inputs But why 1 address generate 14 inputs instead 1?
3
votes
1answer
352 views

What is the size and weight of a P2WPKH input?

I'm investigating diverging P2WPKH input size calculations on two Bitcoin projects and some blog posts. I'm looking for a detailed explanation of the exact weight, vsize and serialized length of a ...
3
votes
1answer
442 views

How can the segwit witness data be "off-chain"? What does it really mean?

I have several questions regarding the segwit witness data. My current understanding is as follows. Before segwit, the witness data was part of the input that the user had to provide so that they ...
0
votes
2answers
93 views

How many addresses can be in input and output of a transaction

I have read through this question and i understand that there can be many sender and receiver addresses within 1 transaction(i'm new to bitcoin transaction, previous i was working with ethereum where ...
2
votes
1answer
114 views

How is the UTXOs of each partially-spent TxIn determined?

My current understanding of a transaction is as follows: a transaction (Tx) can have multiple inputs (which are previous unspent transactions = UTXOs), let's call them the TxIn a Tx can have multiple ...
0
votes
0answers
24 views

Relation between transaction fees and inputs [duplicate]

So this might appear as a duplicate of some of the other questions on this stackexchange, but I feel most of the questions have failed to ask a question that I am really interested in. I want to ...
1
vote
1answer
177 views

Is sharing a signed input safe?

Is it possible to decode the private key from a signed input? For example: From this signed input hex... ...
5
votes
1answer
291 views

What are the sizes of single-sig and 2-of-3 multisig taproot inputs?

There was a Twitter discussion about the sizes of inputs and Taproot came up. What are the input sizes for Taproot inputs? Please cover both the key path spend (single-sig or default spend) and 2-of-...
0
votes
1answer
31 views

More Input-Values than necessary. How and why is this possible? No it is not the fees!

The TXID I am talking about: 21179a8560a0a0906f0c3396af338f74528130d46b65b7f0c79c378d343b3177 blockchain.com link: https://www.blockchain.com/btc/tx/...
0
votes
1answer
29 views

How to know where number of inputs field ends in a transaction if it is not a fixedsize field?

I know that we parse a transaction in bytes. So there are 2 quesions that I search for the answers of: 1- Can VarInt field -that gives the number of inputs in a transaction- be more than 2 hex digits(...
0
votes
1answer
49 views

How do I calculate the sum of transaction inputs?

I am attempting to calculate the mining fee of a transaction, given it's unsigned transaction hex by taking difference between the sum of the inputs and outputs. I also have access to an array of ...
0
votes
1answer
36 views

Is it possible to reference an input outpoint more than once in a transaction?

For example, could you have the following transaction: A --> B A --> C Where A is an input txid and index, and B and C are outputs? The reason I'm asking is because I believe with SIGHASH_SINGLE ...
5
votes
2answers
205 views

Can signature be re-used to cash out everything in the address?

I Know for the P2PK locking script it was like this [pubkey] <OP_CHECKSIG> and then an unlocking script is provided as simple as this: [sig] But if it works like this, others can simply grab ...
0
votes
1answer
44 views

Do transactions need to be signed

I always thought a transaction can be accepted when all its inputs are correctly provided with their unlock script (which usually contains a signature) ——yes transactions may also be rejected with ...
0
votes
1answer
37 views

Input of a transaction

If i want to send 0.2 bitcoin to Bob, will my transaction (in the input field) contain the list of all my previous transactions (both the ones in which i received bitcoins and the ones in which i sent ...
1
vote
1answer
3k views

Usage of PkScript as a part of Inputs of a Transaction

I've seen transactions with PkScripts as part of Inputs eg : Example of such a transaction Could anyone please explain how this PkScript is used ?
1
vote
1answer
315 views

How to create a bitcoin transaction without inputs

How can I create a transaction without inputs and it will be broadcasted but of course won't get confirmed? I would like the simplest method to do this
0
votes
2answers
46 views

Can addresses used in a single tx be assumed to be from the same wallet?

can addresses of input of a single tx be always considered as belonging to same account? Above is a sample transaction on bitcoin. Here, input addresses are 3P2hJg8iRSBExAjd9yQGaazCLPFLeGB3hU (0....
0
votes
2answers
2k views

How to get input address and amount from vin using bitcoin core rpc

I am trying to find details of every transaction using bitcoin core rpc. First, I using bitcoin-cli getblock to get the block data, then use bitcoin-cli getrawtransaction to get the transaction ...
1
vote
1answer
95 views

What does is mean to have input from multiple wallet addresses?

I've trying to parse some data from the blockchain as provided by blockchain.info My question is about transactions that have multiple inputs like this one: https://www.blockchain.com/btc/tx/...
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
536 views

How to manually sign a transaction with multiple inputs and multiple outputs?

I'm developing transaction constructor, but i faced several problems. To some of which i found answer in How to sign a transaction with multiple inputs?, for the rest i'll try to explain: When we ...
1
vote
2answers
136 views

What’s the purpose of checking for input overflow?

Everyone knows this famous fix for block 74638 which still exists in other files. But there’s something I can’t understand, why check for inputs overflow since it’s not possible to have enough utxo ...
4
votes
1answer
592 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 ...
4
votes
1answer
293 views

Are all UTXOs locked by an address spent in a transaction?

Imagine I have 2 UTXOs locked by my address, each of which allows me to spend 5 bitcoins. If I subsequently want to send just 2 bitcoins to someone else, will both UTXOs be used as inputs in the ...
6
votes
2answers
2k views

How do virtual size, stripped size and raw size compare between legacy address formats and native segwit?

This answer states that SegWit doesn't reduce transaction size. If this is true, why is it cheaper to send a SegWit transaction?
0
votes
2answers
48 views

Reference an UTXO of a transaction that has not been yet mined

How to reference an UTXO that has not been yet mined? I want to prepare a transaction and, before spreading it, use its UTXO as input for another relative timelocked transaction. Then, spread the ...
1
vote
1answer
663 views

bitcoinj java library not decoding input addresses for some transactions

I'm trying to "extract" sender's addresses from OP_RETURN Bitcoin transactions, but my code is not working properly. getWalletAddressOfSender(final Transaction tx) public static Address ...
-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/...
1
vote
1answer
637 views

Why are the inputs of Bitcoin transactions signed?

This is my understanding of what a transaction looks like: inputs: input0: txid: <funding tx0 TXID> outputID: <output ID of UTXO in the funding tx0> scriptSig: <...
1
vote
0answers
37 views

What to pass in Transaction Input using Bitcoinj library

URGENT - Need help with setting up Transaction Input and Output objects Transaction rawTransaction = new Transaction(params); txnAmount = Coin.valueOf(50000000); rawTransaction.addOutput(txnAmount, ...
1
vote
2answers
100 views

How many weight units does an input use?

What is the weight unit cost of an input? And can you batch/aggregate the inputs or is it linearly growth when you add more inputs to a tx?
0
votes
1answer
60 views

Which values are GetValueIn() and GetValueOut() calculate?

In Transaction.cpp, there is a function CAmount CTransaction::GetValueOut() const. In Coins.cpp, there is a function CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const. My ...
2
votes
1answer
505 views

what does it mean when a transaction contain multiple inputs?

Just like https://www.blockchain.com/btc/tx/230636ab4f285ca5e9f4c32dbae581c10d491a99493d8733c594af780f1edc5e what does it mean when a transaction contain multiple inputs? as i know, an transaction ...
2
votes
1answer
144 views

How does fee split between senders in a transaction?

I know how fee is calculated in a transaction, but I don't know how this fee amount split into senders. For example, consider the following transaction with 0 BTC miner fee: inputs: Alice ...
0
votes
1answer
204 views

Sign Bitcoin transaction with several inputs using bitcoinj. Broadcasting of transaction failed

Good day! I'm working with low level API to make tx and sign it offline. But after all preparations I try to broadcast it and than i get an error from network: 16: mandatory-script-verify-flag-...
2
votes
2answers
396 views

If I reuse the same address can a previously used transaction be reused?

I was wondering, if I used an address adr0 to spend some coins in a transaction tx0 that give the coins to a different address adr1, and eventually, after some time, I receive some (completely ...
0
votes
1answer
121 views

How get outpoint from txIn

I'm from Ukraine and do not know much English, sorry. I'm not understand where in transaction keep outpoint. Please give me example or manual how get outpoint from input.
0
votes
2answers
616 views

How get address from ScriptSig: PUSHDATA(N)?

I'm from Ukraine and do not know much English, sorry. I want to parse blockchain, but I have problems. In block 728 will first txs (user-user). But input-script have not public keys. I read this ...
1
vote
1answer
118 views

How to read a transaction from a block? Who paid whom?

I'd like to know how to read a 'transaction', so if we take an example of this transaction (which comes from block #520156) it's easy to spot that 'th' paid 'U8' 0.005BTC and '9E' paid 'Y5' 0.013BTC. ...
8
votes
1answer
11k views

multiple input and output addresses in bitcoin transactions

I was checking transactions in blockchain.info. I have some questions about transaction information about input and output addresses. block address: https://blockchain.info/address/...
1
vote
2answers
80 views

how to use multiple time specific address in input scripts with difference balances?

look at to the following transaction (withdraw transaction from binance) https://blockchain.info/tx/404fd22d3d88d129975d03fe2993f0126db8f066b3d8126d6cca676747439515?show_adv=true How in input scripts ...