python-proxy-scraper-client
Version:
A TypeScript client for interacting with a Python proxy scraper service
27 lines (26 loc) • 1 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BubbleMapsClient = void 0;
const base_client_1 = require("../../shared/base-client");
class BubbleMapsClient extends base_client_1.BaseClient {
constructor(config = { baseUrl: 'http://localhost:8000' }) {
super(config);
}
/**
* Get bubble graph data for a specific token
* @param token The token address to get graph data for
* @param chain The blockchain network (default: sol)
* @param dexscreener Whether to include dexscreener data (default: true)
* @returns Bubble graph data for the token
*/
async getBubbleMapsGraph(token, chain = 'sol', dexscreener = true) {
const params = new URLSearchParams({
token,
chain,
dexscreener: dexscreener.toString()
});
const endpoint = `/bubblemaps/graph?${params.toString()}`;
return this.get(endpoint);
}
}
exports.BubbleMapsClient = BubbleMapsClient;
;