Python package for node and schain checks
- Python 3.11+ compatible
pip install skale-checks
Get checks for node on the network, including contract checks and watchdog checks.
from skale_checks.checks.node import NodeChecks
node_checks = NodeChecks(skale,
node_id,
network='mainnet',
es_credentials=(ES_ENDPOINT, ES_LOGIN, ES_PASSWORD),
timeout=10)
results = node_checks.get()
skale
- instance of skalenode_id
- id od the node to checknetwork
-mainnet
|testnet
,mainnet
by default, optionales_credentials
- tuple of elasticsearch endpoint, login and password, optionaltimeout
- watchdog checks timeout, 10 by default, optional
Get checks from specific watchdog. Collect all checks from remote node instance
from skale_checks.checks.watchdog import WatchdogChecks
wd_checks = WatchdogChecks(ip,
network='testnet',
domain_name=None,
web3=None,
timeout=None)
results = wd_checks.get()
ip
- node ip with watchdognetwork
-mainnet
|testnet
,mainnet
by default, optionaldomain_name
- node domain name (for ssl check), optionalweb3
- Web3 instance (for endpoint check), optionaltimeout
- connection timeout for watchdog, optional