python-proxy-scraper-client
Version:
A TypeScript client for interacting with a Python proxy scraper service
23 lines (22 loc) • 768 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.PumpSwapClient = void 0;
const base_client_1 = require("../../shared/base-client");
class PumpSwapClient extends base_client_1.BaseClient {
constructor(config = { baseUrl: 'http://localhost:8000' }) {
super(config);
}
/**
* Get pump pool data for a specific token
* @param baseToken The base token address to get pool data for
* @returns Pump pool data for the token
*/
async getPumpPool(baseToken) {
const params = new URLSearchParams({
base: baseToken
});
const endpoint = `/pumpswap/pump-pool?${params.toString()}`;
return this.get(endpoint);
}
}
exports.PumpSwapClient = PumpSwapClient;
;