Questions tagged [spending]
The spending tag has no usage guidance.
49
questions
0
votes
0
answers
29
views
signing input for spend funds locked by this script
Please explain how to sign input for raw transaction with privet key corresponding to 1st or 2nd public key in this script
"asm": "OP_IF 1694275749 OP_CHECKLOCKTIMEVERIFY OP_DROP ...
1
vote
1
answer
85
views
How can I spend a mix of UTXOs (p2sh, p2wpkh, p2wsh) along with a p2tr UTXO?
I'm constructing a script to spend multiple distinct UTXOs in a single transaction. I've successfully combined all UTXOs except for two.
Succeeding in spending a P2TR with P2PKH UTXO.
I encountered a ...
0
votes
1
answer
41
views
Is there any workaround exist to restrict spending output address from Bitcoin Script?
Hey folks,
I know this question is pretty much similar to the one, that was asked 5 years ago. I'd like to share my research and ask, if there are any movements in this fields since then? Or maybe ...
3
votes
1
answer
97
views
taproot script spending issue
I have been working in a bitcoin library for educational purposes (being taught in courses/meetups/etc.). I had quite some time to work on it and decided it was about time to support taproot.
I have ...
3
votes
1
answer
142
views
How can I tell if a Taproot input is a key path spend or a script path spend?
In some analyses of chain activity, I sometimes see Taproot spends divided into key path and script path.
Why are they called that?
Which BIPs should I read to learn more?
When I look at a P2TR tx in ...
1
vote
3
answers
92
views
After importing a key, does spending the coins remove them from the paper wallet?
Once private keys have been imported to Bitcoin Core, does spending the coins remove them from the previous address?
For example, if I import my private key from a paper wallet and spend those coins ...
1
vote
1
answer
37
views
Track the expenditure of an output with Bitcoin-qt via the REST API
How do you find the transaction whose input, vin, is a given output, vout? For example, the following is the JSON representation of the block with height 1000; here the mining reward is locked behind ...
1
vote
1
answer
53
views
How do I retrieve my bitcoin balance?
I have a bitcoin balance. What's the process I need to follow to spend my balance in my bitcoin address?
0
votes
1
answer
73
views
Why should I care about my transactions ever reaching the blockchain if I can spend them while unconfirmed?
From what I understand, I can use unconfirmed transactions because they are essentially already confirmed, they just need to reach the blockchain. This can create a chain of unconfirmed transactions, ...
1
vote
2
answers
523
views
Were anyone-can-spend transactions valid before SegWit?
Non-segwit nodes (legacy nodes) see segwit transactions as anyone-can-spend (ACS) transactions. It is clear that such a nodes can (and do) validate blocks containing ACS transactions, because the ...
0
votes
1
answer
113
views
How were the first coins spendable?
Apologies for my limited understanding, still learning.
According to https://en.bitcoin.it/wiki/Genesis_block:
The first 50 BTC block reward went to address
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa,[1]...
1
vote
3
answers
288
views
How are UTXO forwarded to other addresses?
this is a pretty general, conceptual question. I feel I do not yet completely understand the blockchain transaction dynamics.
Let's say, we have A, B and C trading on the Blockchain:
A has ...
1
vote
1
answer
963
views
Bech32 Multisig error: Witness requires empty scriptSig (code 64)
I've been able to do multisig between two addresses from electrum and one from bitcoind.
[root@test bin]# bitcoin-cli -testnet getnewaddress
n3JewuY82cprdRvxHdRNG8C3iTkJBKeLbz
[root@test bin]# ...
1
vote
1
answer
185
views
Knowing if a public address is spendable by an HD seed?
I want to know if an address is spendable by an HD seed and for that purpose I am using the following command:
> bitcoin-cli getaddressinfo 3LFc64RRd96ejjYvm14KaogBF9fmeNmePW | jq '.solvable'
...
0
votes
1
answer
7k
views
How can I import my XRP private key online to spend funds?
How can I use my XRP paper wallet private key (or "private address") to send XRP to another address? I know that once a private key touches the internet, the wallet can't be used again (for security ...
1
vote
2
answers
1k
views
Spending BTC from an Electrum watch-only paper wallet?
I've an old BIP-38 paper wallet, and I imported that address into an Electrum (version 3.3.6) watch-only wallet.
I now want to transfer that BTC to an Exchange. I have the relevant password for the ...
-1
votes
1
answer
74
views
How can I find real man for bitcoin mining investment? [closed]
can anyone help me for find a real people? Where I can invest for mining, because i lost lot of money before. Someone scamming with me.
Thanks
0
votes
3
answers
87
views
How to test if a transaction can spend an existing output?
Suppose I'm writing a transaction by hand, that spends an existing uspent output sent by myself from another address. Is there a way to test if the transaction can really spend that output, before ...
4
votes
1
answer
7k
views
Unspent/Spent Flag in Blockchain
I just started getting interested in the blockchain a week ago, however there is something I can not just figure out.
Regarding the flag "Spent/Unspent" in transactions. I get that we flag "spent" ...
1
vote
1
answer
2k
views
64: non-mandatory-script-verify-flag while broadcasting P2WPKH Bech32 with specific inputs
Note: This happens with specific input, even though I've used the same
code for other inputs and it works.
I have created a raw transaction using the following unspent:
Array
(
[0] => Array
...
0
votes
1
answer
1k
views
Bitcoin cash signraw "Input not found or already spent"
I've created raw transaction with non-spent inputs and already exist in Bitcoin cash abc 0.16.2, But when I try to sign that raw transaction I get Input not found or already spent
RawTransaction
...
0
votes
3
answers
313
views
How can you share a plaintext bitcoin address private key with a friend and ensure they won’t spend your bitcoin?
How can you share a plaintext bitcoin address private key with a friend and ensure they won’t spend your bitcoin?
0
votes
1
answer
158
views
Bitcoin Address Workflow on Spend Leftovers
I need to understand the correct Bitcoin address workflow for transactions. I created an address a while back with a common wallet and sent some coin there. The address is at segwit m/49'/0'/0'/0/0. I ...
0
votes
0
answers
157
views
How long must I wait for a 15 sat/B transaction to be confirmed or dropped by the network? What else can be done? [duplicate]
I know my question will likely be marked as a duplicate, but I do not see how to apply that answer in the case of a Ledger Nano S wallet. Doesn't using the Bitcoin wallet software require downloading ...
0
votes
1
answer
137
views
sweepprivkey alternative - bitcoin core
I guess they took off this function, so any alternative?
what i'm looking to do is exactly like this
sweepprivkey privkey minconfirms [destinationtype destination] [fee] [amount changeaddress]
4
votes
1
answer
3k
views
Increase transaction fee with Bitcoin Core client fails because of no change output. Why?
Context
I created a transaction (using the full balance of an output) with the Bitcoin Core Wallet (running as full node). The transaction got into the mempool of major nodes, as expected. I set the ...
0
votes
2
answers
254
views
Which wallets support spending partial amounts of btc from a cold storage address?
Which wallets let you spend partial amounts from your btc address from a cold storage address without the need to import / sweeping it? I know mycellium has the feature, but I'd like to know if there ...
1
vote
1
answer
809
views
Method of spending LTC Litecoin from a paper cold wallet?
I know mycellium has a feature for BTC where you can spend partial amounts from a Bitcoin cold paper wallet. Is there something like this for a LTC Litecoin cold paper wallet? I just want to spend a ...
1
vote
1
answer
1k
views
Spending transaction with custom output
I've recently entered the bitcoin arena, and bitcoinj was my tool choice. Experimenting on regression test mode, I was able to create the following custom transaction. It has a modified locking script ...
4
votes
3
answers
2k
views
How is it possible to say that a bitcoin was fully spent?
Is a simple question, but I want to understand this at the low level.
Since the UTXO is a database with the yet-to-be-spent coins, how can I say that a given coin was already full spent? What would ...
4
votes
1
answer
128
views
Will people not spending their Bitcoin cause Bitcoin to fail? [duplicate]
Everyone I know that owns Bitcoin (including myself) seems to plan to sit on it until it becomes widely accepted/used and the price sky rockets to a ridiculously high value (100000 dollars each). It's ...
2
votes
1
answer
3k
views
Spending unconfirmed output from a change address
Consider a custom program which will occasionally need to send out bitcoin to users to whom I owe money.
Let's say I have 100 unspent BTC at address ADDR_A.
UserX demands payment of 1 BTC to ADDR_X. ...
1
vote
1
answer
72
views
Would a service for automated repurchasing of Bitcoins encourage spending?
We launched Reload, an online service that binds your bitcoin wallet to your bitcoin exchange account (16 supported so far): whenever you spend bitcoins from your wallet, Reload will use your exchange ...
8
votes
1
answer
2k
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 ...
4
votes
2
answers
2k
views
How is the previous transaction hash calculated?
Can anyone provide a clear example on how to calculate a previous transaction hash?
Say I want to create a new transaction, I get that the hash is calculated by doubling sha256 a message m, but I'm ...
3
votes
1
answer
2k
views
How to sweep a bulk wallet?
If I have a bulk wallet with, say 100000 key pairs (address/private key) and I have received payments on any, say 1000 of them, how can I sweep all the coins to a new address? It would be even better ...
2
votes
1
answer
820
views
Specifics on "Race Double Spending Attacks"?
Hi guys I am doing some research on double spending in the bitcoin network several ideas have been confusing me:
In prevention of Race attacks, merchants are advised to "connect to a large random ...
-1
votes
1
answer
935
views
What's up with all the QR codes? [duplicate]
Just bought $5 of Bitcoins from CoinBase. How do I spend them? I gather it has something to do with QR codes. . . .
3
votes
3
answers
838
views
Are hacked bitcoins spendable?
700,000 BTC were stolen from MTGox. So are they actually spendable by the hacker or are they now just lost to the world? I can understand wallets being encrypted, but why aren't individual BTC ...
0
votes
2
answers
612
views
Spend BTCs from a paper wallet
So, I want to create a cold storage bitcoin address to store incoming BTCs from donations and payments (I'm a freelance developer so I'm getting used being payed with BTC). Since this address has to ...
1
vote
2
answers
683
views
Spending bitcoins - what happens to the change left in your address?
How do I manage my wallet and addresses when spending bitcoins?
For example, let's say I have address abcdefgh, and I have 10 Euros there. I read that when I buy something worth say 4 euros in ...
7
votes
3
answers
303
views
Freelancer: billing my customers in bitcoin
I do freelance work and I was considering offering my customers the option of paying me in Bitcoin. Given that bills are usually paid in 2 - 4 weeks after sending them, and the exchange is still quite ...
2
votes
1
answer
48
views
Will Flattr support Bitcoin?
It would be great if it would be possible to spend Bitcoins via Flattr. Does anybody know if there is something planed?
10
votes
3
answers
2k
views
Can you pay with Litecoin anywhere you can pay with Bitcoin?
Can you pay with Litecoin at any place that accepts Bitcoin? If no where can you spend Litecoins?
5
votes
3
answers
3k
views
Where can the private key from a bitaddress.org paper wallet be redeemed?
I recently got started by creating a single wallet using bitaddress.org. This contains the public bitcoin address and the private key in the wallet import format.
I now have some coins in there, but ...
3
votes
3
answers
2k
views
How do I withdraw bitcoins from my MtGox account?
I've purchased a few bitcoins on MtGox. Now I'd like to spend them. How can I actually spend the coins I purchased on MtGox?
I've looked around mtgox.com for any indication of private keys, bitcoins ...
3
votes
2
answers
227
views
Effect of price increase on usage of Bitcoin
I was just about to pay for something with Bitcoins today and I hesitated for an instant thinking that the price might be $10 more next week.
Is it possible that Bitcoin holders will be less likely ...
6
votes
6
answers
1k
views
Is anyone actually spending bitcoins?
I see lots of people talking about buying bitcoins, mining bitcoins, but no one spending.
Maybe I am getting it wrong, but unless I can get paid with bitcoins, this seems to be pointless in my ...
7
votes
3
answers
4k
views
How are fractions of bitcoin implemented and spent?
If the ability to spend bitcoins and therefore bitcoins depend on/correspond to private keys, how can fractions of coins exist? Can the key be split up? How are fractional transactions signed versus ...