user3667: Is there a query that will return the size of the UTXO database? Specifically, the total number of unspent outputs.

user21052: Bitcoin Core provides the gettxoutsetinfo RPC that has exactly the information you want.  Note, it takes that call up to a minute or two to run (and maybe longer as the UTXO set keeps growing).
Here's what my node says right now:
{
  "height": 763253,
  "txouts": 84683939,
  "bogosize": 6314836827,
  "total_amount": 19207623.41689598,
  "transactions": 50344458,
  "disk_size": 5185703215
}

Current and historical data may be found on Statoshi.info's UTXO page.

3667: <p>Is there a query that will return the size of the UTXO database? Specifically, the total number of unspent outputs.</p>
 21052: <p>Bitcoin Core provides the <a href="https://bitcoin.org/en/developer-reference#gettxoutsetinfo" rel="nofollow noreferrer"><code>gettxoutsetinfo</code> RPC</a> that has exactly the information you want.  Note, it takes that call up to a minute or two to run (and maybe longer as the UTXO set keeps growing).</p>
<p>Here's what my node says right now:</p>
<pre><code>{
  &quot;height&quot;: 763253,
  &quot;txouts&quot;: 84683939,
  &quot;bogosize&quot;: 6314836827,
  &quot;total_amount&quot;: 19207623.41689598,
  &quot;transactions&quot;: 50344458,
  &quot;disk_size&quot;: 5185703215
}
</code></pre>
<p>Current and historical data may be found on Statoshi.info's <a href="http://statoshi.info/dashboard/db/unspent-transaction-output-set" rel="nofollow noreferrer">UTXO page</a>.</p>
