简体   繁体   中英

How to check a Bitcoin wallet balance from first generated address (m/44'/0'/0'/0/0)

Is there a way to check a wallet balance from the 1st generated address (parent address) not knowing the child addresses? Need to do it automatically from Linux (API-style) not copy-paste in browser.

Parent address: 1H7wwfstu4e8yianuPtk9CSxUonq4pzLju 0 BTC

Child address: 14ZcreY3y3XxcsRCzfvzz6fWZfBTp6a2ZX 0.00336455 BTC

$ curl -s 'https://blockchain.info/q/addressbalance/1H7wwfstu4e8yianuPtk9CSxUonq4pzLju'
0

$ curl -s 'https://blockchain.info/q/addressbalance/14ZcreY3y3XxcsRCzfvzz6fWZfBTp6a2ZX'
336455

EDIT:

I know the "BIP32 Root Key" and the "BIP32 Extended Public Key", can I do it using any of those?

NEW EDIT:

Thought about using Extended Public Key, can someone confirm if I'm right?

https://blockchain.info/xpub/xpub6Exa9kqjZDFBtx2qftFG3nhqiZ7wZsde2PtygviSLrSunmJeaugdFY67Cv9JSMocDojpvMEykWjzcJFzH8bQtfJdogNSpz5Dy4E6L6yUECV

这可以使用扩展公钥来完成:

https://blockchain.info/xpub/xpub6Exa9kqjZDFBtx2qftFG3nhqiZ7wZsde2PtygviSLrSunmJeaugdFY67Cv9JSMocDojpvMEykWjzcJFzH8bQtfJdogNSpz5Dy4E6L6yUECV

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM