user96070: 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?

user95873: Something like this 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.  People I know use the python slickrpc package from pypi.

96070: <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>
 95873: <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>
