Discover
02 / 06

Find every Vectr token

Two ways, pick by how you already work. Onchain, watch one event on the factory. Offchain, poll or stream the API. Both give you token and curve addresses; the factory is the only complete record.

Updated

Onchain01

Subscribe to TokenLaunched on the factory. The three indexed topics are token, curve and creator, so you can filter by any of them. For a backfill, call getAllTokens() and then getTokenCurve(token) for each.

API02

GET /tokens lists up to 200 tokens by market cap, each with its curve address. GET /tokens/stream pushes a tick with token and curve address whenever a token trades, no polling. GET /tokens/activity is buys and sells only, by name.

# Tokens with their curve addresses, by market cap
curl "https://api.vectr.bot/tokens?limit=200"
# Live feed: one tick per token that trades
curl -N https://api.vectr.bot/tokens/stream
# One token: price, mcap, curve state, creator, quote asset
curl https://api.vectr.bot/tokens/0xTOKEN

Whichever path you take, keep the curve address per token. Every trade event on the next page is emitted by the curve, not the factory, so your log filter is the set of curve addresses you have collected. The factory on Robinhood Chain is the only place new ones appear.