UNPKG

chia-network-scanner

Version:
36 lines (35 loc) 862 B
/** * Connection options for connecting to a full Chia node with the peer protocol. */ interface NodeOptions { hostname: string; port: number; } /** * Network and protocol version to connect with. */ interface NetworkOptions { networkId: string; protocolVersion: string; softwareVersion: string; } /** * Details for this peer as it connects to the Chia network. */ interface PeerOptions { nodeType: number; } /** * Required configuration for using the Chia Network Scanner. */ interface NetworkScannerOptions { startNodes: NodeOptions[]; network: NetworkOptions; peer: PeerOptions; connectionTimeout: number; concurrency: number; certPath: string; keyPath: string; } declare const parseOptions: (options: NetworkScannerOptions) => NetworkScannerOptions; export { NetworkScannerOptions, parseOptions };