Parameters
string
default:"bitcoin-testnet"
required
Unique identifier for a blockchain network.
number
default:1
required
Request identifier used to match responses.
string
default:"2.0"
required
JSON-RPC version.
string
default:"getblockstats"
required
JSON-RPC method name.
object
required
Parameters: [hash_or_height, metrics?].Positional parameters for
getblockstats:params[0]: Block hash or height.params[1]: Optional list of metrics to compute.
Returns
object
Selected block statistics (size, weight, fees, etc.).