UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

25 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EthMonitorSearch = void 0; var monitor_iterable_1 = require("./iterables/auto-pagination/monitor-iterable"); var monitor_page_iterable_1 = require("./iterables/pagewise/monitor-page-iterable"); /** * Represents the endpoint to interact with all Ethereum monitors in a cross-wallet manner. */ var EthMonitorSearch = /** @class */ (function () { function EthMonitorSearch(waas) { this.waas = waas; } EthMonitorSearch.prototype.list = function (params, options) { var initialRequest = { url: "eth/monitors", params: params }; if (options === null || options === void 0 ? void 0 : options.autoPagination) { return new monitor_iterable_1.MonitorIterable(this.waas, initialRequest); } else { return new monitor_page_iterable_1.MonitorPageIterable(this.waas, initialRequest); } }; return EthMonitorSearch; }()); exports.EthMonitorSearch = EthMonitorSearch; //# sourceMappingURL=eth-monitor-search.js.map