Author

Topic: getting balance of xpub key using bitcoind (Read 1996 times)

hero member
Activity: 692
Merit: 569
August 10, 2015, 11:56:54 PM
#7
HI MZ,

Would it possible for you to help us test xpub search in blockonomics, find details here https://bitcointalksearch.org/topic/m.12105873


Thanks
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
August 01, 2015, 07:03:27 AM
#6
-snip-
I think its easiest for blockonomics  to ask user to enter wallet name so that we use the appropriate path to import addresses.

That is a good idea. Feel free to ask if you have any doubt/problem. Good luck!
hero member
Activity: 692
Merit: 569
August 01, 2015, 02:11:22 AM
#5
AFAIK it derives tree and scan external chain addresses to see transactions.

Do you know  how far does it derive the tree(depth and breath) ?

It stops searching until "X" number of consecutive unused addresses is found, where X is gap limit. By default, gap limit is 20 but it depends on wallet software. I think you can also go with 20 as gap limit.

Thanks MZ,  now I had a look at Account discovery in  https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki and it seems to match what you described. Also had a look at HD wallets

I  see wallets using m/44'/0'/0'/c/i , and also m/0/0'/a'/c/i . I would assume https://blockchain.info/xpub/xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz is searching using m/c/i .

I think its easiest for blockonomics  to ask user to enter wallet name so that we use the appropriate path to import addresses.
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
AFAIK it derives tree and scan external chain addresses to see transactions.

Do you know  how far does it derive the tree(depth and breath) ?

It stops searching until "X" number of consecutive unused addresses is found, where X is gap limit. By default, gap limit is 20 but it depends on wallet software. I think you can also go with 20 as gap limit.
hero member
Activity: 692
Merit: 569
AFAIK it derives tree and scan external chain addresses to see transactions.

Do you know  how far does it derive the tree(depth and breath) ?
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
AFAIK it derives tree and scan external chain addresses to see transactions.
hero member
Activity: 692
Merit: 569
I want to know how https://blockchain.info/xpub/xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz
works ?

How does it calculate the balance from utxo  ? Does it match each address in utxo to check if it is a child of given xpub key (I don't think so), or it always computes say 10 child addresses and shows their balance.

Sorry, couldn't find answer in other places. Feel free to point me it post if its already answered.
Jump to: