Linked Questions

5
votes
2answers
4k views

Bitcoin-qt -how does it choose the address to take money from when sending btcs

I don't have any bitcoins yet, but I have the the wallet program called bitcoin-qt. I am wondering about the send feature. It does not seem to let me choose which address to deduct the coins from. How ...
9
votes
3answers
622 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 ...
3
votes
1answer
882 views

What are the trade-offs between the different algorithms for deciding which UTXOs to spend?

When someone would like to make a transaction, their software has to choose which of their UTXOs to spend. Here are a few different ways that one might prioritize which UTXOs get spent. Oldest UTXOs ...
8
votes
2answers
924 views

How does the standard client prioritize transactions?

I've heard that the standard client prioritizes which transaction to relay based on the Bitcoin Days Destroyed and the fee paid on the transaction, but what is the exact formula used to determine ...
4
votes
1answer
475 views

BTC Days Destroyed, Lifo or Fifo?

Imagine I've got 100 BTC in my wallet, which I accumulated at different points of time. When spending a fraction of my BTC, e.g. 10 BTC, which one of my 100 BTC do I actually spent? The last one I ...
5
votes
2answers
360 views

Which inputs will be spent?

Say someone holds 100,000 btc. Over time, this address has been spammed with dust by numerous parties. Now, the oldest funds come from the previous large transaction. If the dust is, say 0....
0
votes
1answer
917 views

sendtoaddress questions

Does sendtoaddress automatically collect as many unspent outputs as needed? Is there any way to specify the from address? How is the fee computed? I just tested with two transactions: a) 0.0001 xbt, ...
0
votes
1answer
1k views

Determine inputs/outputs of a transaction before sending

I am attempting to build a working withdrawal system where users can withdraw funds in BTC. I am required to estimate the fee before allowing them to withdraw to include it in their payment. I was ...
4
votes
1answer
313 views

How can one realistically model the distribution of the network's unspent transaction outputs?

I am working on a simulation to explore the usefulness of a patch for the CoinSelection behaviour of BitcoinCore. To that end, I am looking for statistics on the distribution of unspent outputs ...
4
votes
2answers
308 views

How does Bitcoin Core's Coin Selection prevent change to be a dust output?

Bitcoin Core's Coin Selection optimizes for minimal change outputs. How does Bitcoin Core prevent Change outputs of sizes below dust threshold from occurring?
3
votes
1answer
470 views

Coin selection algorithm in Python to optimally select UTXO

Does anyone know of a good coin selection algorithm in Python that's perhaps similar to the one in Bitcoin Core (currently this: github/bitcoin/src/wallet.cpp (per guidance from stackexchange/1077))? ...
1
vote
1answer
342 views

Do all UTXO get moved to the newest change address?

There is one thing I do not understand about unspent outputs and change addresses. For example, let's say a person has 5BTC in a wallet, and they have 2 unspent outputs of 3BTC and 2BTC. They one ...
1
vote
1answer
287 views

How do wallets select which balances get sent as part of a transaction?

I'm a newbie at this and still trying to get my head around Bitcoin. Three linked questions around how the transaction works... 1) How does the wallet decide which balances/addresses form part of a ...
2
votes
1answer
99 views

What order does Bitcoin Core place the inputs it spends in?

What order does Bitcoin core place the inputs it spends in? Is it random? Is it sorted by anything? What, if anything, can you tell about the originator of a transaction by the input ordering?
1
vote
0answers
188 views

Understanding addresses [duplicate]

So according to many wallets, they say you should use a different public address for every transaction for security reasons. Are all of those public addresses linked to the same wallet/private key ...

15 30 50 per page