user98008: I am trying to make a query about a bitcoin address's btc amount. As I've read, getreceivedbyaddress rpc command can only be used for the addresses of a wallet that one owns and that command is awallet command. I want to make a query about any bitcoin addresses btc amount. Is it possible? If yes, how do I do it?

user7272: You can use the new scantxoutset method to check for UTXOs matching a given script, address, or key descriptor.
For example, to scan an address, you can use:
bitcoin-cli scantxoutset start "[\"addr(1....)\"]"


98008: <p>I am trying to make a query about a bitcoin address's btc amount. As I've <a href="https://bitcoin.stackexchange.com/questions/57065/why-bitcoin-cli-getreceivedbyaddress-always-returns-0">read</a>, <strong>getreceivedbyaddress</strong> rpc command can only be used for the addresses of a wallet that one owns and that command is awallet command. I want to make a query about any bitcoin addresses btc amount. Is it possible? If yes, how do I do it?</p>
 7272: <p>You can use the new <code>scantxoutset</code> method to check for UTXOs matching a given script, address, or key descriptor.</p>

<p>For example, to scan an address, you can use:</p>

<pre><code>bitcoin-cli scantxoutset start "[\"addr(1....)\"]"
</code></pre>
