Skip to main content

Parameters

chainId
string
default:"bitcoin-testnet4"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getblockstats"
required
JSON-RPC method name.
params
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

result
object
Selected block statistics (size, weight, fees, etc.).