You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation, the Skale-stats API call returns statistics, but it is unclear over what time period this data was collected. For more detailed and convenient use of this API, adding a timestamp with second-level precision is necessary.
This could be either the time when the signal is received or the time when Skaled itself collects the statistics.
Example Request and response
curl -X POST --data '{"jsonrpc":"2.0","method":"skale_stats","params":null,"id":1205}' http://1.1.1.1:10000
{"id":1205,"jsonrpc":"2.0","result":{"blocks":{"blocksPerSecond":0.08748149665151735,"pendingTxPerSecond":0.0,"transactionsPerBlock":0.0,"transactionsPerSecond":0.0},"executionPerformance":{"RPC":{"protocols":{"HTTP":{"callTimeAvg":0.0002866372699999999,"callTimeMax":0.000442635,"callTimeMin":4.0637e-05,"methodMax":"eth_getBlockByNumber","methodMin":"eth_blockNumber"},"WS":{"callTimeAvg":0.00039311090000000004,"callTimeMax":0.003391724,"callTimeMin":2.9296e-05,"methodMax":"eth_subscribe","methodMin":"eth_subscribe"}},"summary":{"callTimeAvg":0.00029631669090909087,"callTimeMax":0.000442635,"callTimeMin":2.9296e-05,"methodMax":"eth_getBlockByNumber","methodMin":"eth_subscribe","protocolMax":"HTTP","protocolMin":"WS"}}},"protocols":{"http":{"listenerCount":2,"rpc":{"eth_blockNumber":{"answers":58917,"aps":0.1280921614956834,"bps_recv":8.500761888629956,"bps_sent":6.288230191859161,"bytes_recv":4300932,"bytes_sent":3181509,"calls":58917,"cps":0.1280921614956834,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_call":{"answers":12091,"aps":0.026285855656217882,"bps_recv":9.239777091548742,"bps_sent":2.71416401982978,"bytes_recv":4674820,"bytes_sent":1373218,"calls":12091,"cps":0.026285855604263914,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_chainId":{"answers":14367,"aps":0.03123420870437437,"bps_recv":1.998730040491633,"bps_sent":1.6295774603207325,"bytes_recv":1011248,"bytes_sent":824477,"calls":14367,"cps":0.03123420870437437,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getBalance":{"answers":39500,"aps":0.08587659366417986,"bps_recv":9.91504846167949,"bps_sent":8.741424147674497,"bytes_recv":5016500,"bytes_sent":4422707,"calls":39500,"cps":0.08587659366417986,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getBlockByNumber":{"answers":3200128,"aps":6.957378887485765,"bps_recv":582.0568099627303,"bps_sent":10543.590546190428,"bytes_recv":294496165,"bytes_sent":5334611550,"calls":3200128,"cps":6.957378887485765,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getCode":{"answers":4,"aps":8.117786785444081e-06,"bps_recv":0.0011202545763912832,"bps_sent":0.020440587125748196,"bytes_recv":483,"bytes_sent":8813,"calls":4,"cps":8.117786785444081e-06,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getStorageAt":{"answers":93,"aps":0.00023526529348594786,"bps_recv":0.04227118719941306,"bps_sent":0.02414601488469684,"bytes_recv":18219,"bytes_sent":10407,"calls":93,"cps":0.00023526529348594786,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getTransactionReceipt":{"answers":4,"aps":8.117760482628786e-06,"bps_recv":0.0013800192788461319,"bps_sent":0.01198877255277377,"bytes_recv":595,"bytes_sent":5169,"calls":4,"cps":8.117760463800775e-06,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"skale_imaInfo":{"answers":6739,"aps":0.014649825702453509,"bps_recv":1.4285240292530297,"bps_sent":11.73293116333495,"bytes_recv":722754,"bytes_sent":5936213,"calls":6739,"cps":0.014649825673498113,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"skale_nodesRpcInfo":{"answers":565,"aps":0.0012266161133747794,"bps_recv":0.12604537942784055,"bps_sent":4.1909159870265995,"bytes_recv":63772,"bytes_sent":2120372,"calls":565,"cps":0.0012266161085259652,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"skale_stats":{"answers":0,"aps":0.0,"bps_recv":null,"bps_sent":0.0,"bytes_recv":65,"bytes_sent":0,"calls":1,"cps":null,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0}},"stats":{"":{"answers":0,"aps":0.0,"bps_recv":5.336407029995254e-05,"bps_sent":0.0,"bytes_recv":27,"bytes_sent":0,"calls":2,"cps":2.5693811625903074e-06,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"POST":{"answers":3332408,"aps":7.244968107209755,"bps_recv":613.3034454897362,"bps_sent":10578.935326122051,"bytes_recv":310305643,"bytes_sent":5352494516,"calls":3332409,"cps":7.24497028130425,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0}}},"https":{"listenerCount":1,"rpc":{},"stats":{"":{"answers":0,"aps":0.0,"bps_recv":1.7788023433317515e-05,"bps_sent":0.0,"bytes_recv":9,"bytes_sent":0,"calls":1,"cps":3.952894096292781e-07,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0}}},"ws":{"listenerCount":1,"rpc":{"eth_subscribe":{"answers":10,"aps":2.0004706810412885e-05,"bps_recv":0.0017588296680838258,"bps_sent":0.001263663657925091,"bytes_recv":888,"bytes_sent":638,"calls":10,"cps":2.0004706810412885e-05,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_subscription/newHeads":{"answers":38743,"aps":0.08440953389526944,"bps_recv":0.0,"bps_sent":130.53114295738686,"bytes_recv":0,"bytes_sent":65902122,"calls":0,"cps":0.0,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0}},"stats":{"messages":{"answers":10,"aps":2.0004706850035487e-05,"bps_recv":0.0017588296680838258,"bps_sent":0.0012636636604279844,"bytes_recv":888,"bytes_sent":638,"calls":10,"cps":2.0004706810412885e-05,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0}}},"wss":{"listenerCount":1,"rpc":{},"stats":{}}},"rpc":{"eth_blockNumber":{"answers":58917,"aps":0.1280921614956834,"bps_recv":8.500761888629956,"bps_sent":6.288230191859161,"bytes_recv":4300932,"bytes_sent":3181509,"calls":58917,"cps":0.1280921614956834,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_call":{"answers":12091,"aps":0.026285855604263914,"bps_recv":9.239777091548742,"bps_sent":2.7141640144652373,"bytes_recv":4674820,"bytes_sent":1373218,"calls":12091,"cps":0.026285855604263914,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_chainId":{"answers":14367,"aps":0.03123420870437437,"bps_recv":1.998730040491633,"bps_sent":1.6295774603207325,"bytes_recv":1011248,"bytes_sent":824477,"calls":14367,"cps":0.03123420870437437,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getBalance":{"answers":39500,"aps":0.08587659366417986,"bps_recv":9.91504846167949,"bps_sent":8.741424147674497,"bytes_recv":5016500,"bytes_sent":4422707,"calls":39500,"cps":0.08587659366417986,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getBlockByNumber":{"answers":3200128,"aps":6.957378887485765,"bps_recv":582.0568099627303,"bps_sent":10543.590546190428,"bytes_recv":294496165,"bytes_sent":5334611550,"calls":3200128,"cps":6.957378887485765,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getCode":{"answers":4,"aps":8.117786785444081e-06,"bps_recv":0.0011202545763912832,"bps_sent":0.020440587125748196,"bytes_recv":483,"bytes_sent":8813,"calls":4,"cps":8.117786785444081e-06,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getStorageAt":{"answers":93,"aps":0.00023526529348594786,"bps_recv":0.04227118719941306,"bps_sent":0.02414601488469684,"bytes_recv":18219,"bytes_sent":10407,"calls":93,"cps":0.00023526529348594786,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_getTransactionReceipt":{"answers":4,"aps":8.117760482628786e-06,"bps_recv":0.0013800192788461319,"bps_sent":0.01198877255277377,"bytes_recv":595,"bytes_sent":5169,"calls":4,"cps":8.117760463800775e-06,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_subscribe":{"answers":10,"aps":2.0004706810412885e-05,"bps_recv":0.0017588296680838258,"bps_sent":0.001263663657925091,"bytes_recv":888,"bytes_sent":638,"calls":10,"cps":2.0004706810412885e-05,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"eth_subscription/newHeads":{"answers":38743,"aps":0.08440953389526944,"bps_recv":0.0,"bps_sent":130.53114295738686,"bytes_recv":0,"bytes_sent":65902122,"calls":0,"cps":0.0,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"skale_imaInfo":{"answers":6739,"aps":0.014649825702453509,"bps_recv":1.4285240292530297,"bps_sent":11.73293116333495,"bytes_recv":722754,"bytes_sent":5936213,"calls":6739,"cps":0.014649825673498113,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"skale_nodesRpcInfo":{"answers":565,"aps":0.0012266161133747794,"bps_recv":0.12604537942784055,"bps_sent":4.1909159870265995,"bytes_recv":63772,"bytes_sent":2120372,"calls":565,"cps":0.0012266161085259652,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0},"skale_stats":{"answers":0,"aps":0.0,"bps_recv":null,"bps_sent":0.0,"bytes_recv":65,"bytes_sent":0,"calls":1,"cps":null,"erps":0.0,"errors":0,"exceptions":0,"exps":0.0}},"system":{"cpu_load":0.0,"disk_usage":null,"mem_usage":0.9758692037280168},"tracepoints":{"broadcast_already_have":4,"create_block":44261,"drop_bad_transactions":1236223,"drop_good":4,"drop_good_transactions":44261,"fetch_transactions":1236223,"import_block":44261,"receive_transaction":4,"receive_transaction_success":4,"send_to_consensus":4,"sent_txn":4,"sent_txn_new":4},"unddos":{"calls":{"127.0.0.1":{"ban":false,"cpm":240,"cps":0},"149.28.76.136":{"ban":false,"cpm":16,"cps":6},"77.255.39.239":{"ban":false,"cpm":1,"cps":1}},"counts":{"rpc_ban":0,"rpc_normal":3,"ws_ban":0,"ws_normal":1},"global_ban":false,"global_cpm":11,"global_cps":0,"global_ws_conns_count":1,"ws_conns":{"N/A":{"ban":false,"cnt":1}}}}}
The text was updated successfully, but these errors were encountered:
In the current implementation, the Skale-stats API call returns statistics, but it is unclear over what time period this data was collected. For more detailed and convenient use of this API, adding a timestamp with second-level precision is necessary.
This could be either the time when the signal is received or the time when Skaled itself collects the statistics.
Example Request and response
The text was updated successfully, but these errors were encountered: