getblockstats (4.2.2 RPC) blockchain getbestblockhash getblock getblockchaininfo getblockcount getblockfilter getblockhash getblockheader getblockstats getchainlocks getchaintips getchaintxstats getdifficulty getmempoolancestors getmempooldescendants getmempoolentry getmempoolinfo getrawmempool gettxout gettxoutproof gettxoutsetinfo preciousblock pruneblockchain savemempool scantxoutset verifychain verifytxoutproof control getmemoryinfo getrpcinfo help logging stop uptime evo bls_fromsecret bls_generate protx_diff protx_info protx_list quorum_dkgsimerror quorum_dkgstatus quorum_getrecsig quorum_hasrecsig quorum_info quorum_isconflicting quorum_list quorum_memberof quorum_selectquorum quorum_sign quorum_verify evowallet protx_info_wallet protx_list_wallet protx_register protx_register_fund protx_register_prepare protx_register_submit protx_revoke protx_update_registrar protx_update_service generating generateblock generatetoaddress generatetodescriptor governance getgovernanceinfo getsuperblockbudget gobject_check gobject_count gobject_deserialize gobject_diff gobject_get gobject_getcurrentvotes gobject_list gobject_submit gobject_vote_conf voteraw governancewallet gobject_list_prepared gobject_prepare gobject_vote_alias gobject_vote_many masternode masternode_connect masternode_count masternode_current masternode_list masternode_outputs masternode_payments masternode_status masternode_winner masternode_winners mining createauxblock getblocktemplate getmininginfo getnetworkhashps prioritisetransaction submitauxblock submitblock submitheader network addnode clearbanned disconnectnode getaddednodeinfo getconnectioncount getnettotals getnetworkinfo getnodeaddresses getpeerinfo listbanned ping setban setnetworkactive rawtransactions analyzepsbt combinepsbt combinerawtransaction converttopsbt createpsbt createrawtransaction decodepsbt decoderawtransaction decodescript finalizepsbt fundrawtransaction getrawtransaction joinpsbts sendrawtransaction signrawtransactionwithkey testmempoolaccept utxoupdatepsbt syscoin assetallocationverifyzdag assetinfo assettransactionnotarize convertaddress getnotarysighash listassets mnauth mnsync spork syscoincheckmint syscoinclearethheaders syscoindecoderawtransaction syscoingetspvproof syscoingettxroots syscoinsetethheaders syscoinsetethstatus syscoinstartgeth syscoinstopgeth syscoinwallet addressbalance assetallocationbalance assetallocationburn assetallocationmint assetallocationsend assetallocationsendmany assetnew assetnewtest assetsend assetsendmany assettransfer assetupdate convertaddresswallet getauxblock listunspentasset sendfrom signhash signmessagebech32 syscoinburntoassetallocation util createmultisig deriveaddresses estimatesmartfee getdescriptorinfo getindexinfo signmessagewithprivkey validateaddress verifymessage wallet abandontransaction abortrescan addmultisigaddress backupwallet bumpfee createwallet dumpprivkey dumpwallet encryptwallet getaddressesbylabel getaddressinfo getbalance getbalances getnewaddress getrawchangeaddress getreceivedbyaddress getreceivedbylabel gettransaction getunconfirmedbalance getwalletinfo importaddress importdescriptors importmulti importprivkey importprunedfunds importpubkey importwallet keypoolrefill listaddressgroupings listdescriptors listlabels listlockunspent listreceivedbyaddress listreceivedbylabel listsinceblock listtransactions listunspent listwalletdir listwallets loadwallet lockunspent psbtbumpfee removeprunedfunds rescanblockchain send sendmany sendtoaddress sethdseed setlabel settxfee setwalletflag signmessage signrawtransactionwithwallet unloadwallet upgradewallet walletcreatefundedpsbt walletlock walletpassphrase walletpassphrasechange walletprocesspsbt zmq getzmqnotifications getblockstats hash_or_height ( stats ) Compute per block statistics for a given window. All amounts are in satoshis. It won't work for some heights with pruning. Arguments: 1. hash_or_height (string or numeric, required) The block hash or height of the target block 2. stats (json array, optional, default=all values) Values to plot (see result below) [ "height", (string) Selected statistic "time", (string) Selected statistic ... ] Result: { (json object) "avgfee" : n, (numeric) Average fee in the block "avgfeerate" : n, (numeric) Average feerate (in satoshis per virtual byte) "avgtxsize" : n, (numeric) Average transaction size "blockhash" : "hex", (string) The block hash (to check for potential reorgs) "feerate_percentiles" : [ (json array) Feerates at the 10th, 25th, 50th, 75th, and 90th percentile weight unit (in satoshis per virtual byte) n, (numeric) The 10th percentile feerate n, (numeric) The 25th percentile feerate n, (numeric) The 50th percentile feerate n, (numeric) The 75th percentile feerate n (numeric) The 90th percentile feerate ], "height" : n, (numeric) The height of the block "ins" : n, (numeric) The number of inputs (excluding coinbase) "maxfee" : n, (numeric) Maximum fee in the block "maxfeerate" : n, (numeric) Maximum feerate (in satoshis per virtual byte) "maxtxsize" : n, (numeric) Maximum transaction size "medianfee" : n, (numeric) Truncated median fee in the block "mediantime" : n, (numeric) The block median time past "mediantxsize" : n, (numeric) Truncated median transaction size "minfee" : n, (numeric) Minimum fee in the block "minfeerate" : n, (numeric) Minimum feerate (in satoshis per virtual byte) "mintxsize" : n, (numeric) Minimum transaction size "outs" : n, (numeric) The number of outputs "subsidy" : n, (numeric) The block subsidy "swtotal_size" : n, (numeric) Total size of all segwit transactions "swtotal_weight" : n, (numeric) Total weight of all segwit transactions "swtxs" : n, (numeric) The number of segwit transactions "time" : n, (numeric) The block time "total_out" : n, (numeric) Total amount in all outputs (excluding coinbase and thus reward [ie subsidy + totalfee]) "total_size" : n, (numeric) Total size of all non-coinbase transactions "total_weight" : n, (numeric) Total weight of all non-coinbase transactions "totalfee" : n, (numeric) The fee total "txs" : n, (numeric) The number of transactions (including coinbase) "utxo_increase" : n, (numeric) The increase/decrease in the number of unspent outputs "utxo_size_inc" : n (numeric) The increase/decrease in size for the utxo index (not discounting op_return and similar) } Examples: > syscoin-cli getblockstats '"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"' '["minfeerate","avgfeerate"]' > syscoin-cli getblockstats 1000 '["minfeerate","avgfeerate"]' > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockstats", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09", ["minfeerate","avgfeerate"]]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/ > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockstats", "params": [1000, ["minfeerate","avgfeerate"]]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/