getblockstats RPC Method
Parameters
hash_or_height
string/numeric
REQUIRED
Loading...
stats
JSON Array
Loading...
Returns
avgfee
Loading...
avgfeerate
Loading...
avgtxsize
Loading...
blockhash
Loading...
feerate_percentiles
Loading...
height
Loading...
ins
Loading...
maxfee
Loading...
maxfeerate
Loading...
maxtxsize
Loading...
medianfee
Loading...
mediantime
Loading...
mediantxsize
Loading...
minfee
Loading...
minfeerate
Loading...
mintxsize
Loading...
outs
Loading...
subsidy
Loading...
swtotal_size
Loading...
swtotal_weight
Loading...
swtxs
Loading...
time
Loading...
total_out
Loading...
total_size
Loading...
total_weight
Loading...
totalfee
Loading...
txs
Loading...
utxo_increase
Loading...
utxo_size_inc
Loading...
Request
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"id": 1, "jsonrpc": "2.0", "method": "getblockstats", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09", ["minfeerate","avgfeerate"]]}'5
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"id": 1, "jsonrpc": "2.0", "method": "getblockstats", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09", ["minfeerate","avgfeerate"]]}'5
Response
1{2"result": {3"avgfeerate": 0,4"minfeerate": 05},6"error": null,7"id": null8}
1{2"result": {3"avgfeerate": 0,4"minfeerate": 05},6"error": null,7"id": null8}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free