@motosan-whale/aggregator
v0.1.4
Published
Cross-chain whale aggregator combining discovery and investigation sources
Maintainers
Readme
@motosan-whale/aggregator
Layer 2: Cross-chain query aggregator with parallel querying and optional cache.
Part of the motosan-whale SDK — agent-first whale tracking tools.
Install
pnpm add @motosan-whale/aggregatorUsage
import { WhaleAggregator } from '@motosan-whale/aggregator'
const aggregator = new WhaleAggregator({
sources: [solana, evm],
discovery: nansen,
cache: myRedisAdapter, // optional
})
const txs = await aggregator.getLargeTxs({ minAmountUsd: 1_000_000, chains: ['solana', 'base'] })
const alerts = await aggregator.getSmartMoneyAlerts({ timeRange: '4h' })API
Key exports:
WhaleAggregator— unified cross-chain query interfacegetLargeTxs()— large transactions across multiple chains in parallelgetSmartMoneyAlerts()— aggregated smart money alerts- Accepts optional cache adapter for response caching
License
MIT
