Skip to main content

Questions tagged [utxo]

Unspent Transaction Outputs (UTXOs) are created by transactions and allow the owner of an associated address to spend a specific amount.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
180 views

How to approach building a custom UTXO index on top of a full-node

I want to avoid physically importing addresses into a wallet. I want to write a UTXO indexing system on a per-address basis. I often wonder how a wallet can keep track of all of its addresses' UTXOs, ...
Anonona's user avatar
  • 215
5 votes
0 answers
721 views

Bitcoin RPC: How to find the transaction that spends a TXO?

I suspect there is no good way to do it. However is there any sub-optimal way to find the transaction that spends a transaction output (knowing the txid and index) with Bitcoin RPC? Assuming txindex=1 ...
nopara73's user avatar
  • 836
3 votes
0 answers
1k views

How to directly query leveldb database to get get a record by transaction hash or by sender's address?

I learned that the blocks and transactions are stored locally in .bitcoin/blocks/index and .bitcoin/chainstate databases, respectively. I want to make a direct query to those databases to measure the ...
Noureddine's user avatar
2 votes
1 answer
668 views

How to get unspents for inputs using bitcoinjs-lib?

I would like my simple wallet app to automatically select UTXOs for inputs. I realize that I can't accomplish this with just bitcoinjs, but is there something I can add to it to keep track of unspents?...
Setheroni's user avatar
2 votes
1 answer
65 views

Is it cryptographically possible to have aggregate signature schemes that can improve privacy in UTXO consolidation?

My understanding of Schnorr signatures, Taproot and Graftroot and how they improve privacy in smart contracts / multi-sig is by allowing users to aggregate signatures so the individual signatures and ...
crypt_chameleon's user avatar
1 vote
0 answers
133 views

Chain 2 transactions in same block with bitcoinlib in Python

I asked yesterday if it's possible to have a tx from A to B then B to C in the same block, with the second tx spending the UTXO of the first one (with initial balance of B is 0) Apparently it is : Can ...
sgbbfbf's user avatar
  • 11
1 vote
0 answers
41 views

Indexing Spent UTXOs

I want to do analytics on bitcoin data and for this I would need to be able to check in what tx a spent UTXO is spent. For this Im going to index all spent UTXOs in a database and I need help with ...
bittzz's user avatar
  • 11
1 vote
0 answers
72 views

Error when trying to broadcast multi input tx (Programming Bitcoin by Jimmy Song)

I am reading Programming Bitcoin (chapter 7 exercise 5) and I have created a 2 inputs 1 output transaction on testnet which I have signed and it now verifies as true. When I go broadcast the ...
user144329's user avatar
1 vote
0 answers
63 views

latest UTXO databases received

There are many repositories that allow you to turn blockchain into UTXO. But I can't find where I could download ready-made UTXOs. I only find instructions on how to get such a database myself. ...
accountnujen's user avatar
1 vote
0 answers
155 views

LND: How to use whole UTXO to open a channel?

How can I use an UTXO completely to open a Channel? Do I have to calculate the fees by hand to do this? If so, what would it be if I have a 1 million sat UTXO and set fees to 3sat/vB?
Luffy's user avatar
  • 11
1 vote
0 answers
193 views

Send transaction with 2 inputs and 2 outputs using Blockcypher

I'm using a node.js client of Blockcypher in order to broadcast a Bitcoin transaction. My code: const originWalletBalance = getBalance(originAddress) const fee = calculateFee() const txBody = { ...
forhas's user avatar
  • 137
1 vote
0 answers
91 views

Cannot unserialize chainstate transaction outputs after de-obfuscation

I was able to read chainstate database. Getting the key and de-obfuscating to get a valid last block. However, when it comes to transactions that follow after that, I cannot de-serialize them no ...
Anonymous's user avatar
  • 111
1 vote
0 answers
138 views

Use wallet db for locked UTXOs in Bitcoin Core

Related question: Why are UTXO locks stored in memory only? Sorry this maybe a dumb question for people good with using database in C++ however I am not able to understand what exactly is going wrong ...
user avatar
1 vote
1 answer
683 views

How to create a transaction input from tx id of UTXO?

I'm in the midst of working this github --> https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2sh_transaction.py Sorry as I'm not that good in this. I would like to ask the ...
Jsim's user avatar
  • 43
1 vote
0 answers
61 views

How many TXO have been created in total?

I've seen some statistical data about the Bitcoin UTXO number (around 61M currently). I was wondering how many TXOs (including spent and unspent) there were in the complete history of Bitcoin?
Scaryang's user avatar
1 vote
0 answers
101 views

Uniquely identifying a UTXO

I see two ways: Txid + index Txid + script hash Pros of the txid + index: Simple and short Cons of txid + index: It relies on array iteration being deterministic and all third party services ...
Soggiorno's user avatar
  • 111
1 vote
0 answers
78 views

What would UTXO consolidation look like in the public ledger with Schnorr signatures?

I am excited about the privacy and optimisations involved with moving from ECDSA to Schnorr signatures. One of the privacy improvements, as I understand it, is that you can aggregate signatures so ...
crypt_chameleon's user avatar
1 vote
1 answer
516 views

Pycoin: How to sign SegWit transaction via Pycoin?

My target is to make transaction with unspent transaction outputs(UTXOS). The information of UTXOs is as follow. [ { "pt_idx": 0, "subaccount": 37, "ga_asset_id": 1, "value": "...
Coder HHC's user avatar
1 vote
0 answers
67 views

Create an issuance and a send within the same block (XCP)

Using counterparty api I am issuing an asset, signing the raw transaction and sending raw transaction. Api I used is http://counterparty.io/docs/api/#create_issuance As it takes 10 or more minutes to ...
Mxl's user avatar
  • 11
1 vote
0 answers
108 views

get utx scriptPubKey to become an object

I'm using this python script https://github.com/sebicas/bitcoin-sniffer When I see a utx I look at each output and find the scriptPubKey I expected to see something like "scriptPubKey": { "asm": ...
Ben Muircroft's user avatar
1 vote
0 answers
686 views

Mempool tracking

I'm trying to clear up some uncertainties around the mempool A tx comes in, its validated, and no other transactions have currently marked any of its inputs. Tx gets added to mempool. If a double ...
Matt's user avatar
  • 550
0 votes
1 answer
114 views

Script evaluated without error but finished with a false/empty top stack element (Electrum gives error)

My raw Transaction ...
Tepan's user avatar
  • 3
0 votes
1 answer
134 views

How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?

In stake.com for each user they generate separate bech32 address for deposit & displays the deposited amount as balance in top of the navigation bar. Similarly for withdraw they just ask for the ...
Kimi Raikkonen 9790's user avatar
0 votes
0 answers
44 views

Signing transaction for later use

If I have a segwit UTXO with for example 10 BTC , can I make some raw transactions ready to get broadcasted?
Newdude's user avatar
  • 53
0 votes
0 answers
42 views

Is there a way to know at any point in time T how many BTC exist that were bought at time t<T?

What I would like to find out is whether for a specific time in the past, we can know the number of BTC that exist today and were bought at this time. The discrete time can be the time of block ...
user101893's user avatar
0 votes
0 answers
41 views

if bitcoin miner(s) changed the UTXO set would the bitcoin nodes reject the blocks?

if so, would this cause a Fork? or what would happen?
user100601's user avatar
0 votes
1 answer
184 views

How to create an application which constructs a transaction using `bcoin` (javascript)?

I am new to development. I am working on a project and I am trying to use bcoin. I want to create an application which has a UI, where the user will be asked to enter Destination address and amount. ...
Deb's user avatar
  • 133
0 votes
2 answers
613 views

How to get unspent bitcoins using bitcoinj

I'm trying to get unspent transaction using bitcoinj like here without using api calls. How can I do this?
sano143's user avatar
  • 33