@liskhq/lisk-api-client
Version:
An API client for the Lisk network
22 lines • 668 B
JavaScript
;
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