<p>Something <a href="https://bitcoin.stackexchange.com/questions/83804/how-to-get-the-derived-public-key-from-xpub">like this</a> might be a lead for what you're after.  It gives you a list of addresses which you can then query your node by RPC.</p>

<p>You then use the <a href="http://chainquery.com/bitcoin-api/getbalance" rel="nofollow noreferrer">getbalance RPC method</a>.  People I know use the python <a href="https://github.com/barjomet/slick-bitcoinrpc" rel="nofollow noreferrer">slickrpc package</a> from <a href="https://pypi.org/project/slick-bitcoinrpc/" rel="nofollow noreferrer">pypi</a>.</p>

CC BY-SA 4.0
2019-06-19T16:58:50.387Z
Just to follow-up and document my findings. After some research, I've decided to leverage the Open Source project from [Samourai Dojo](https://github.com/Samourai-Wallet/samourai-dojo). 
Tracking wallet balances via xpub requires conforming to BIP44, BIP49 or BIP84 address derivation scheme and the Dojo can do that through a local node.
alphazeta
CC BY-SA 4.0
2019-06-10T10:49:29.623Z
2019-06-10T11:00:16.983Z
2019-06-10T11:00:16.983Z
Mylo Mylo
<p>Anyone familiar with a Python library that can get a list of all transactions under an XPUB but by connecting to a Bitcoin node through RPC?</p>

<python>
Read an XPUB list of transactions to Python using my own node
alphazeta
# Read an XPUB list of transactions to Python using my own node

(Asked by: username_0 on 2019-06-10)

Anyone familiar with a Python library that can get a list of all transactions under an XPUB but by connecting to a Bitcoin node through RPC?

**Tags:** python


---

## 1 answers

### Answer by username_1 on 2019-06-10. Score: 1 | Accepted answer

Something [like this](https://bitcoin.stackexchange.com/questions/83804/how-to-get-the-derived-public-key-from-xpub) might be a lead for what you're after. It gives you a list of addresses which you can then query your node by RPC.

You then use the [getbalance RPC method](http://chainquery.com/bitcoin-api/getbalance). People I know use the python [slickrpc package](https://github.com/barjomet/slick-bitcoinrpc) from [pypi](https://pypi.org/project/slick-bitcoinrpc/).

> **Comments:**
> **username_0**: Just to follow-up and document my findings. After some research, I've decided to leverage the Open Source project from [Samourai Dojo](https://github.com/Samourai-Wallet/samourai-dojo).  Tracking wallet balances via xpub requires conforming to BIP44, BIP49 or BIP84 address derivation scheme and the Dojo can do that through a local node.  

---

