Check transaction per block in Bitcoin what is bitcoin-cli command for checking how many transaction per block ?
Thanks you
getblockstats

  &quot;txs&quot; : n,                   (numeric) The number of transactions (including coinbase)



Example
C:\Program Files\Bitcoin\daemon&gt; bitcoin-cli getblockcount
627251

C:\Program Files\Bitcoin\daemon&gt; bitcoin-cli getblockstats 627251 | findstr /C:&quot;\&quot;txs\&quot;:&quot;
  &quot;txs&quot;: 2103,

The full output contains lots of other information
C:\Program Files\Bitcoin\daemon&gt; bitcoin-cli getblockstats 627251
{
  &quot;avgfee&quot;: 8359,
  &quot;avgfeerate&quot;: 17,
  &quot;avgtxsize&quot;: 571,
  &quot;blockhash&quot;: &quot;000000000000000000070ab39c953fd599b27da2c171476d2b2e8533484130bd&quot;,
  &quot;feerate_percentiles&quot;: [
    7,
    7,
    8,
    25,
    30
  ],
  &quot;height&quot;: 627251,
  &quot;ins&quot;: 6108,
  &quot;maxfee&quot;: 1598037,
  &quot;maxfeerate&quot;: 387,
  &quot;maxtxsize&quot;: 99011,
  &quot;medianfee&quot;: 4007,
  &quot;mediantime&quot;: 1587620811,
  &quot;mediantxsize&quot;: 249,
  &quot;minfee&quot;: 162,
  &quot;minfeerate&quot;: 1,
  &quot;mintxsize&quot;: 188,
  &quot;outs&quot;: 4844,
  &quot;subsidy&quot;: 1250000000,
  &quot;swtotal_size&quot;: 550012,
  &quot;swtotal_weight&quot;: 1383607,
  &quot;swtxs&quot;: 893,
  &quot;time&quot;: 1587623122,
  &quot;total_out&quot;: 403374241843,
  &quot;total_size&quot;: 1202103,
  &quot;total_weight&quot;: 3991971,
  &quot;totalfee&quot;: 17572435,
  &quot;txs&quot;: 2103,
  &quot;utxo_increase&quot;: -1264,
  &quot;utxo_size_inc&quot;: -94315
}