Zcash
getchaintxstats8 Credits
Berechnet Statistiken zu Gesamtzahl und Rate der Transaktionen in der Chain
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| nblocks | number | Größe des Fensters in Blöcken. Standard ist ein Monat an Blöcken. (optional) |
| blockhash | string | Hash des Blocks, der das Fenster abschließt. Standard ist der Chain-Tip. (optional) |
Rückgabewert
Typ
Object
time, txcount, window_final_block_hash, window_final_block_height, window_block_count und, wenn das Fenster Blöcke enthält, window_tx_count, window_interval und txrate (durchschnittliche Transaktionen pro Sekunde).
Codebeispiele
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
]
}'