요금GitHub대시보드

Zcash

getchaintxstats8 크레딧

체인의 전체 트랜잭션 수와 처리율에 관한 통계를 계산합니다.

네트워크: zcash

매개변수

이름타입설명
nblocksnumber윈도 크기(블록 수). 기본값은 한 달 분량의 블록. (선택)
blockhashstring윈도를 끝내는 블록의 해시. 기본값은 체인 tip. (선택)

반환값

타입

Object

time, txcount, window_final_block_hash, window_final_block_height, window_block_count, 그리고 윈도에 블록이 있으면 window_tx_count, window_interval, txrate(초당 평균 트랜잭션 수).

코드 예제

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
  ]
}'