Stats

Get some blockchain statistics.

GET /stats.json

Response

Returns the tx hash and propagation information.

blocks Block statistics
total Total number of blocks seen by this node
main Number of blocks in the main chain
side Number of blocks in a side chain
orphan Number of orphan blocks without a chain
size Total size of all blocks in the main chain
txs Number of transactions
txins Number of transaction inputs
txouts Number of transaction outputs
addrs Number of addresses that have been used
coins Number of coins ever created
script_types Output script statistics
unknown Number of outputs with a script of unknown type
pubkey Number of outputs with a pay-to-pubkey script
pubkey_hash Number of outputs with a pay-to-pubkey-hash script
multisig Number of outputs with a multisig script
script_hash Number of outputs with a pay-to-script-hash/p2sh script
op_return Number of outputs with an op_return script
p2sh_types P2SH-input script statistics
unknown Number of inputs that spend an unknown p2sh script
pubkey Number of inputs that spend a pay-to-pubkey p2sh script
pubkey_hash Number of inputs that spend a pay-to-pubkey-hash/address p2sh script
multisig Number of inputs that spend a multisig p2sh script
script_hash Number of inputs that spend a pay-to-script-hash/p2sh script nested inside a p2sh script
op_return (Not possible)
time Timestamp when the stats where last updated

Example

curl http://namecoin.webbtc.com/stats.json
{
  "blocks": {
    "total": 426379,
    "main": 426247,
    "side": 132,
    "orphan": 0,
    "size": 3370646157
  },
  "txs": 4921040,
  "txins": 11019716,
  "txouts": 18774450,
  "addrs": 7347339,
  "coins": 1582805000000000,
  "work": 903875275450734975488484283,
  "script_types": {
    "unknown": 4160,
    "pubkey": 3304107,
    "pubkey_hash": 11487166,
    "multisig": 0,
    "script_hash": 23,
    "op_return": 98912,
    "name_new": 1033815,
    "name_firstupdate": 926845,
    "name_update": 1919496
  },
  "p2sh_types": {
  },
  "names": 3880131,
  "time": 1542572743
}