UNPKG

@emeraldplatform/eth-node

Version:

Ethereum and Ethereum classic full node management

18 lines (17 loc) 466 B
import { EthRpc } from '@emeraldplatform/eth-rpc'; declare type NodeInfo = { chain: string; chainId: number; clientVersion: string; }; export default class NodeChecker { ethRpc: EthRpc; static ETC_MAINNET_GENESIS: string; static ETC_MORDEN_GENESIS: string; static ETC_BLOCK_1920000: string; static ETH_BLOCK_1920000: string; constructor(ethRpc: EthRpc); exists(): Promise<string>; check(): Promise<NodeInfo>; } export {};