UNPKG

python-proxy-scraper-client

Version:

A TypeScript client for interacting with a Python proxy scraper service

23 lines (22 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InsightXClient = void 0; const base_client_1 = require("../../shared/base-client"); class InsightXClient extends base_client_1.BaseClient { constructor() { super({ baseUrl: "http://localhost:8000" }); } async getBubblemap(chainId, address) { const endpoint = `/insightx/bubblemap/${chainId}/${address}`; return this.get(endpoint); } async getBubblemapByTimestamp(chainId, address, timestamp) { const endpoint = `/insightx/bubblemap/${chainId}/${address}/${timestamp}`; return this.get(endpoint); } async getTimestamps(chainId, address) { const endpoint = `/insightx/timestamps/${chainId}/${address}`; return this.get(endpoint); } } exports.InsightXClient = InsightXClient;