Bitcoin Forum
July 06, 2024, 12:48:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: List funds per address  (Read 1898 times)
binaryFate (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1003


Still wild and free


View Profile
June 07, 2013, 11:28:05 PM
Last edit: June 07, 2013, 11:44:21 PM by binaryFate
 #1

More precisely, I'd like to know the fastest way to get the confirmed (if the number of confirmations can be specified perfect, otherwise I'll be happy with 1) amount on each address in the wallet.
I used to get the list of (confirmed) unspent outputs with listunspent, filter for a particular address and just sum all unspent amounts. That works great and I'm happy with the result. It is just rather slow.

I'm trying to find a faster way to get the same thing done, I thought I found my holy grail with listaddressgroupings but then figured out that it doesn't work exactly as expected:
Say address XYZ has 1 (confirmed) BTC, if I create a transaction using unspents associated to XYZ, to send out 0.1 BTC, and I call again listaddressgroupings I would expect to see 0.9 "remaining", but it remains 1 BTC until this transaction gets confirmed.
Any way to achieve this or I have to stick to listunspent and do the computation myself?


EDIT: My bad, I was not actually sending the transactions anymore after signing them. listaddressgroupings then does exactly what I want.
Sorry for the noise!  Sad

Monero's privacy and therefore fungibility are MUCH stronger than Bitcoin's. 
This makes Monero a better candidate to deserve the term "digital cash".
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
June 08, 2013, 12:41:59 AM
 #2

https://bitcointalk.org/index.php?topic=144331.0

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!