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 the same set of tokens and their curve addresses.

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/activity returns the latest launches and trades. GET /tokens/stream is a server-sent event feed of every indexed trade and price tick, no polling.

# Launches and trades, newest first
curl "https://api.vectr.bot/tokens/activity?limit=20"
# Live feed
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.