Zcash
getchaintxstats8 crédits
Calcule des statistiques sur le nombre total et le rythme des transactions de la chaîne
Paramètres
| Nom | Type | Description |
|---|---|---|
| nblocks | number | Taille de la fenêtre en blocs. Par défaut, un mois de blocs. (facultatif) |
| blockhash | string | Hash du bloc qui termine la fenêtre. Par défaut, la pointe de la chaîne. (facultatif) |
Valeur renvoyée
Type
Object
time, txcount, window_final_block_hash, window_final_block_height, window_block_count et, lorsque la fenêtre contient des blocs, window_tx_count, window_interval et txrate (nombre moyen de transactions par seconde).
Exemples de code
curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getchaintxstats",
"params": [
2016
]
}'