UNPKG

@liskhq/lisk-api-client

Version:
22 lines 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeMethods = void 0; class NodeMethods { constructor(channel) { this._channel = channel; } async getNodeInfo() { return this._channel.invoke('system_getNodeInfo'); } async getNetworkStats() { return this._channel.invoke('network_getStats'); } async getConnectedPeers() { return this._channel.invoke('network_getConnectedPeers'); } async getDisconnectedPeers() { return this._channel.invoke('network_getDisconnectedPeers'); } } exports.NodeMethods = NodeMethods; //# sourceMappingURL=node_methods.js.map