Questions tagged [transactions]

This tag should be used for questions related to transactions. Transactions are signed messages regarding the transfer or generation of bitcoins. They are broadcast throughout the Bitcoin network and, if accepted, integrated in the blockchain.

Filter by
Sorted by
Tagged with
48
votes
5answers
16k views

What is relation between scriptSig and scriptPubKey?

Scenario: A is sending 1 BTC to B. scriptSig appears in the Input Script. scriptSig = <sig> <pubKey> Here, public key is the Public Key of the sender, A. (this is the public key ...
19
votes
1answer
13k views

Get non-wallet transactions using bitcoin rpc (gettransaction)

I am playing around with Bitcoin-qt. I want to iterate all blocks and all their transactions. So far I've been able to get a list of all tx's in the blocks I want to. Now I want to get information ...
28
votes
5answers
5k views

Has there ever been a successful double spend attack on the Bitcoin network? If not, is it really necessary to wait for confirmations?

There is a lot of concern about waiting for confirmations to avoid a double spend attack, but has there ever actually been a double spend attack? It seems to be that there are two types of double ...
27
votes
2answers
7k views

How many Bitcoin addresses are/have been carrying a balance?

Bitcoin addresses can be generated at will, and the theoretical limit to their number is high. Addresses are constantly being generated to receive funds or balance transactions, but they are also ...
28
votes
2answers
7k views

Is there some way to merge two wallets or to import/export addresses?

I've got one wallet.dat from my laptop and another on my desktop, each containing various (different) receiving addresses that I use pretty often. I'd like to merge them into a single wallet.dat so I ...
25
votes
2answers
3k views

In order to reduce fees, can I 'consolidate' my wallet by sending the entire balance to a new address in the same wallet?

My balance is currently made up of lots of small amounts I know I'm not going to be using my bitcoin wallet for a while, so I don't care if the consolidation transaction is slow. Would creating this ...
18
votes
3answers
85k views

How many confirmations do I need to ensure a transaction is successful? [duplicate]

As a regular user of Bitcoin, I often send bitcoins to other, or receive BTC from others, sometimes this might be a trade or deposit. Some traders require at least 6 confirmation, some require at ...
13
votes
2answers
12k views

What is “Script Hash” address exactly and how does it work?

I found out this address playing with blockchain https://blockchain.info/address/3NukJ6fYZJ5Kk8bPjycAnruZkE5Q7UW7i8 I found out it's something called "scripthash". How does it work exactly? How does ...
11
votes
2answers
4k views

Transactions with a wait time (using nLockTime)

I'd like to know if there are transactions that can only take place at some predefined moment. In principle, it should be possible to use the parameter nLockTime to wait for a particular block number: ...
21
votes
1answer
3k views

What does the Bitcoin client do when it receives conflicting transactions?

I've been assuming that the second transaction will simply be discarded as invalid, while the first waits at 0/unconfirmed until it actually gets into a block (requiring a "-rescan" or similar if the ...
17
votes
1answer
1k views

Speed of operations in the Bitcoin network

Did anyone measure how fast transactions spread through the Bitcoin network? For example, how long does it take for a newly generated block to be propagated to most active clients? Mainly asking this ...
5
votes
2answers
1k views

How to get the Input Address from vin where only a txid is given (Insight-Api)

I like to find the Input Address and Amount for a vin like this: "vin": [ { "txid": "e3f0e88ce224d342a0189c1b9d2fd488d8bda2f303dbe1e1dbbaa5f51d9f4a53", "vout": 1, "...
4
votes
1answer
1k views

What are the minimum sizes for transactions and blocks in Bitcoin?

I have gone through many research articles but couldn't find out what the minimum sizes of a transaction and a block are. Is there any reference where I can find an answer to my question?
3
votes
1answer
917 views

Are transactions containing zero-value output accepted by miners?

Would miners generally accept a transaction that has one of its output values set to zero? Can the acceptance in this case depend also on the scriptPubKey associated with the zeroed output?
12
votes
3answers
128k views

How long does it take on average to receive one confirmation? Is it still reversible?

Hi! Based on your experience, how long does it take to receive one confirmation for any given transaction which has payed the standard miner's fee? Is it still reversible? Thanks!
24
votes
2answers
4k views

Useful alternative Bitcoin transaction scripts

The Bitcoin wiki describes a transaction's script as something that describes "how the next person wanting to spend the Bitcoins being transferred can gain access to them". The script for "a typical ...
16
votes
2answers
1k views

Transaction with slightly changed script is never relayed

I am playing with bitcoin transaction a bit now. I have a question. Normally, the output script looks like OP_DUP OP_HASH160 (hash) OP_EQUALVERIFY OP_CHECKSIG Now that is understandable. However, ...
17
votes
3answers
4k views

Is this “transaction malleability” really an issue?

The well-known Bitcoin exchange Mt.Gox last week suspended all Bitcoin withdrawals because of "technical issues", which today have been better described in this press release. This looks like a ...
9
votes
3answers
607 views

How can I control which coins to spend in a transaction?

When creating a bitcoin transaction, you have to choose which coins to use in them. The standard client does this in a way to avoid unconfirmed inputs and minimize the number of inputs and amount of ...
12
votes
1answer
5k views

How does one make multisignature transactions with the bitcoin client?

With the release of bitcoin version 0.6.1rc2, it is now possible to do M-of-N required signature transactions in the main network. But how does one actually perform such a transaction? I've been ...
1
vote
1answer
327 views

How do SPV get their transactions after being offline?

SPV nodes rely on their peers to send them transaction data that is relevant to them. When an SPV node sets up a bloom filter with one of their full node peers, doesn't that only tell the full node ...
19
votes
1answer
2k views

What protection does Bitcoin have against Denial of Service (DoS) attacks?

What protection does Bitcoin have against DoS attacks? Could you bring down a node by flooding it with data? What happens if someone starts flooding the network with legitimate, yet nonsense, ...
7
votes
3answers
2k views

Is there a way to prove ownership of a transaction?

Is it possible to prove that you are the sender in a transaction? Prove this to 3rd-parties, not only the receiver.
5
votes
1answer
768 views

Pay to Script Hash Execution

Combining the spending transaction scriptSig and funding transaction scriptPubKey, we get: <OP_0> <sig A> <sig C> <redeemScript> <OP_HASH160> <redeemScriptHash> &...
16
votes
1answer
1k views

Given a private key, how do you get a public address [duplicate]

Possible Duplicate: How are public & private keys in an address created? I am scanning in a private key from a QR code in an app I am writting to handle the import of physical bitcoins. ...
9
votes
3answers
753 views

Is it possible for the miners to collude to blackmail a single wealthy address?

Imagine if a few miners who together control more than 50% of the network hash power decided to charge higher transaction fees just for addresses containing really large sums. For example, this ...
8
votes
2answers
2k views

How to retrieve the from and to wallet addresses of a transaction?

Given a transaction's inputs and outputs, I'd like to be able to extract the wallet address (or addresses) which sent the transaction, and also the address/addresses that will receive the transaction. ...
7
votes
3answers
5k views

How to know if a transaction is valid?

I understand there are a couple things that need to be checked for a transaction to be valid - the previous transaction had to be correct, no OP can invalidate the transaction, etc, but is there a ...
5
votes
3answers
866 views

how to stop bitcoin transfers from unknown parties?

How can you prevent bitcoins from unknown parties being transferred to any of your bitcoin addresses? if so, how? If not, why not?
5
votes
2answers
4k views

How do I create an offline transaction in java to broadcast via blockchain.info?

Blockchain.info has a PushTX API. How do I create & sign a raw transaction in Java for use in this API? Should I use bitcoinj? Are there any code samples?
4
votes
2answers
5k views

How to make a simple payment with the python-bitcoinlib?

I've been using the bitcoin-python library for making payments from within Python. This worked pretty simple: >>> import bitcoinrpc >>> conn = bitcoinrpc.connect_to_local() >>&...
2
votes
3answers
3k 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 ...
23
votes
8answers
2k views

Can I send bitcoins with my mobile phone?

Is it possible to send and receive bitcoins with a mobile phone? If so, are there bitcoin clients for Android or iOS?
16
votes
1answer
5k views

What is transaction replay and replay protection?

With everyone and their dog making new blockchains forked from the bitcoin blockchain, there is a lot of talk about replay protection. What is a transaction replay? What does replay protection do?
12
votes
2answers
2k views

Two blocks, two transactions, same hash

Would a block containing a transaction with an identical hash as a previous transaction be considered valid? That is, if someone made a transaction for generating Bitcoins and solve two blocks with ...
11
votes
2answers
587 views

In a double spend attempt, how is the valid transaction chosen?

Suppose I publish the private key of an address that contains 1 bitcoin. If two people try to transfer this bitcoin to another address before a new block is found, who gets it? How is this decision ...
6
votes
3answers
4k views

Can I spend/transfer bitcoins directly from cold storage?

From reading previous articles I understand that you can receive bitcoins to an address even if your wallet is in cold storage because the bitcoins sent to this address is recorded by someone on the ...
4
votes
1answer
720 views

a few questions about how HD wallet works

I've read through HD wallet from various resources and have got the basic understanding about it, but am still confused by a few details 1) Each non-hardened public keys (thus addresses) can receive ...
12
votes
4answers
3k views

How do I safely accept bitcoins without waiting for confirmations?

Are there any arbitrators that would guarantee the bitcoin transaction such that no one has to wait ten minutes to confirm the transfer of the said bitcoins?
10
votes
4answers
3k views

How important is the fee for speed of confirmation?

I am developing a Bitcoin application, so I am sending a lot of "toy" transactions for testing, with 0 fees. But it seems that those take forever to get confirmed. (Right now I am waiting 45 minutes ...
8
votes
1answer
6k views

How is a Transaction ID generated & when does it change? (with a new sequence ID?)

I'm creating a non-mainstream client that processes and validates Bitcoin transactions and need to track transactions in my database. How is the TxID generated and when does it change? ...
6
votes
1answer
431 views

Where can I learn more about BIP30; namely the exploit and the background discussion?

I'm having trouble understanding the bug that was fixed in BIP030, and how it would be exploited. Is the premise of this attack that there would have to be a netsplit and the chain was forked, then ...
4
votes
2answers
594 views

Does the satoshi client always send the change of a transaction to a newely generated address?

Experimentally, this seems to be the case, but is it always like this or depends on some details? Also, does it generate a new address each time this is done, or first searches the wallet if there is ...
4
votes
2answers
489 views

What does this transaction script mean?

I was looking for scripts on the blockchain to test my program, and I encountered a weird scriptPubKey in this tx that I couldn't understand. The opcodes are pk1 = ...
3
votes
3answers
531 views

How many transactions have been included into the blockchain?

This website shows the number of bitcoin transactions per day, but I want to know how many there are total. How can I do this?
1
vote
2answers
1k views

Can bitcoins be traced to scammers

Was scammed recently of €5600 .Was approached online and encouraged to buy bitcoin through coinbase. I had no experience of it before. Was told to send my bitcoin to a company address which I now know ...
26
votes
4answers
7k views

how to monitor +20,000 addresses for new received transactions?

I have around 20000 generated addresses which I want to monitor for new transactions. More addresses should probably come. Customers should use every address only once but I would like to monitor ...
18
votes
4answers
83k views

How do I send Bitcoin in paper wallet to other person?

I'm new to bitcoin. Can you tell me step by step how do I send Bitcoin in paper wallet to other person. Thank you!
18
votes
1answer
32k views

How do nodes verify Bitcoin Transactions?

I am trying to understand the role played by various nodes in the Bitcoin Network in verifying the transactions that are taking place in real time. I think that I understand the process of Transaction ...
16
votes
2answers
11k views

ECDSA r, s encoding as a signature

An ECDSA algorithm when signing a given messages produces a pair of outputs, r and s. How, given a sigStr from a Tx can one extract r and s? Are they just concatenated byte arrays of a specific length,...