Author

Topic: how to get balance bch from xpub (blockchain.info) (Read 194 times)

newbie
Activity: 15
Merit: 0
oooohhhh!! thx maaan!
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
 so, i can make this automaticaly? maybe php script or python?
This is a script that does it for bitcoin. https://github.com/dan-da/hd-wallet-addrs
BCash is similar to bitcoin so you just have to change the API to query BCash block explorers instead
newbie
Activity: 15
Merit: 0
 so, i can make this automaticaly? maybe php script or python?
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
ah, okey, how i can get all bitcoin addresses from xpub?
I can think of a few ways...
You can use Ian Coleman's BIP39 tool(remember to download the Website and access it from an airgapped  PC) if you have the seed phrase (BTC and BCash have the same address derivation scheme)
It will create the list of bitcoin addresses from the seed (same thing the xpub does)

If you don't have the seed then
You can use something like this: https://github.com/dan-da/hd-wallet-addrs
But edit it to query BCash block explorer APIs instead of bitcoin's so you can get the balance of the addresses.

There might be easier ways but I'm sleepy and can't think of anything better now
newbie
Activity: 15
Merit: 0
ah, okey, how i can get all bitcoin addresses from xpub?
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
Blockchain.info Is a BITCOIN block explorer.
It won't work for an altcoin like BCash.

This is a BCash block explorer: https://blockdozer.com/insight/

Unfortunately, no BCash block explorer can search for xpub.

If you want to, you can do it manually by deriving the addresses from the xpub and checking them on a block explorer.
newbie
Activity: 15
Merit: 0
how to get bch balance from xpub key like: https://blockchain.info/address/xpub6Bn..... ? All xpub from blockchain.info
Jump to: