How big is the UTXO database?

22

8

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

pinhead

Posted 2015-02-10T16:54:41.210

Reputation: 2 356

Answers

23

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": 442313,
  "transactions": 15237948,
  "txouts": 43194647,
  "bytes_serialized": 1635888675,
  "total_amount": 16028761.10201779
}

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

David A. Harding

Posted 2015-02-10T16:54:41.210

Reputation: 10 154

It seems to me that having more than one sample output does not benefit the answer, as it will eventually be outdated inevitably. I'd probably roll back to your initial answer, or replace the old output with the current. Although, it is somewhat interesting to see that within half a year the number of txouts has almost doubled.Murch 2015-08-10T14:46:22.587

@Murch The number of outputs has just about doubled now, to 33409889.Anonymous 2015-08-29T13:21:10.590

Does all the nodes store UTXO database? @Murch♦alper 2018-01-03T16:33:18.423

1@Alper: Yes, all full nodes have the complete UTXO Set.Murch 2018-01-04T00:18:56.953