1.0.6 • Published 4 months ago
python-proxy-scraper-client v1.0.6
Python Proxy Scraper Client
A TypeScript client for interacting with a Python proxy scraper service. This client provides a convenient interface to interact with blockchain data and trading information.
Features
- TypeScript support with full type definitions
- Blockchain service integration
- Environment variable configuration
- Easy to use client interface
- Support for multiple chains (ETH, BSC, SOL, TRX)
Installation
npm install python-proxy-scraper-client
Usage
import { Client } from 'python-proxy-scraper-client';
// Initialize the client
const client = new Client();
// Get trending tokens
const trendingTokens = await client.blockchain.gmgn.getTrendingTokens('eth', '1h');
// Get token security information
const tokenSecurity = await client.blockchain.gmgn.getTokenSecurityAndLaunchpad(
'0x123...', // token address
'eth' // chain
);
// Get wallet holdings
const holdings = await client.blockchain.gmgn.getWalletHoldings(
'0x456...', // wallet address
'eth' // chain
);
Configuration
The client can be configured using environment variables:
- Create a
.env
file in your project root:
BACKEND_URL=http://your-backend-url
- Or pass the URL directly when initializing the client:
const client = new Client('http://your-backend-url');
Available Chains
eth
- Ethereumbsc
- Binance Smart Chainsol
- Solanatrx
- TRON
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run the example
npm start
License
ISC