Skip to main content

Requirements

Install the Package

Module Support

The SDK supports both ESM and CommonJS:

Initialize a Client

ThreatClient

For security analysis (addresses, contracts, sanctions, URLs):

TradingClient

For trading analysis (holder analysis, sniper detection):

Configuration Options

Both clients accept the same configuration options:

Default Chain

Set a default chain to avoid specifying it on every request:

Debug Mode

Enable logging to troubleshoot issues:
Never commit your API key to version control. Use environment variables or a secrets manager.

Individual Packages

If you only need specific functionality, install individual packages to reduce bundle size:

TypeScript Configuration

The SDK is written in TypeScript and includes type definitions. For the best experience, ensure your tsconfig.json includes:

Next Steps

ThreatClient

Analyze addresses, contracts, and URLs

TradingClient

Holder analysis and trading insights