Stop Polling /token in a Loop: Batch Endpoints for Solana Sniper Bots
Two batch endpoints on the MadeOnSol API — `POST /v1/token/batch` and `POST /v1/tokens/batch/buyer-quality` — let you score or enrich up to 50 mints in a single round-trip. Faster than serial polling, gentler on rate limits, and the buyer-quality batch shares the same 5-minute LRU cache as the single-mint endpoint.

The instinct on most APIs is to call them in a for loop. You have 30 token mints to look up; you write for (const mint of mints) await client.token.get(mint); and ship it. It works in dev. Then production traffic shows up and your 30-row scanner is firing 30 HTTP requests every 5 seconds, you breach the burst limit on the third batch, and your bot starts 429-ing.
There's a better path on MadeOnSol for the two endpoints where this comes up most: full token lookup and buyer-quality scoring. Both have batch variants that accept up to 50 mints per request, run all the underlying queries in parallel, and return the same per-mint shape you'd get from the singular endpoint.
Updated September 2026: this guide now matches the live batch routes: both accept up to 50 unique base58 mints, buyer-quality shares a 5-minute LRU cache with the single-mint route, and both are available to authenticated BASIC/Free accounts as well as paid tiers.
This post walks through both, with worked examples for a sniper bot that needs to evaluate every new mint from a stream within seconds.
POST /api/v1/token/batch — full per-mint data, 50 at a time
Request:
curl -X POST https://madeonsol.com/api/v1/token/batch \
-H "Authorization: Bearer msk_..." \
-H "Content-Type: application/json" \
-d '{ "mints": ["4k3Dyj...", "9bTpRf...", "2eY8Ww..."] }'
Response:
{
"tokens": [
{
"mint": "4k3Dyj...",
"price_usd": 0.00029,
"market_cap": 287000,
"vwap_price_usd": 0.000288,
"fdv_usd": 290000,
"liquidity_usd": 14200,
"primary_dex": "pumpswap",
"volume_24h_usd": 412000,
"trades_24h": 1820,
"first_seen_at": "2026-05-14T08:11:00Z",
"age_seconds": 12660,
"is_blacklisted": false,
"blacklist_category": null,
"deployer": {
"wallet": "Gv7n...",
"tier": "elite",
"bonding_rate": 0.41
},
"kol_activity": {
"buying_kols": 6,
"selling_kols": 1,
"net_flow_sol": 18.4,
"signal": "accumulating",
"top_buyers": [
{ "name": "@alpha", "sol_amount": 4.2 },
{ "name": "@beta", "sol_amount": 3.8 }
]
},
"mc_change_pct": { "5m": 8.2, "15m": 22.1, "1h": 41.7 },
"volume_usd": { "5m": 4200, "15m": 18200, "1h": 81000 },
"mev_volume_pct":{ "5m": 12.1, "15m": 18.4, "1h": 22.7 }
}
],
"count": 3
}
Identical to the single-mint GET /v1/token/{mint} shape, just in an array. ULTRA tier additionally gets KOL wallet addresses inside kol_activity.top_buyers. Up to 50 mints per call.
What runs in parallel under the hood
A single-mint call kicks off seven concurrent operations: mc-tracker enrichment, dex-stream price/volume, SOL price, RPC supply lookup, deployer join, KOL trade history, and first-seen + blacklist lookups. A batch call fans the same seven out, but the database queries are batched with IN (...) rather than executed N times, and the per-mint HTTP/RPC calls fan out in parallel:
- Deployer / first-seen / blacklist / KOL trades — one Postgres round-trip each for all 50 mints (vs 50 round-trips). The
is_blacklistedflag returned here is the same sniper safety guard we detail in our token blacklist API guide, which filters stablecoins, wrapped SOL, LSTs, and known rugs. - dex-stream
/price/{mint}— 50 parallel local HTTP calls (vs 50 serial). - RPC supply lookup — 50 parallel RPC calls.
- mc-tracker enrichment — one batched query for all 50.
The important guarantee here is architectural, not a fixed latency promise: the independent per-mint network lookups fan out concurrently and the database work is batched. Actual wall-clock time depends on RPC and database load. From the API rate-limit perspective, the entire batch costs one request rather than one request per mint.
Building a product on Solana or Robinhood Chain data?
Skip the Geyser pipeline — embed KOL flow, deployer reputation, and the all-DEX firehose over REST, WebSocket, or webhooks. The Business tier (€400/mo) is the self-serve embed license at 500k calls/day — Enterprise adds white-label & redistribution.
POST /api/v1/tokens/batch/buyer-quality — quality scores with LRU caching
Buyer-quality scoring is its own batch endpoint, separate from /token/batch, because the underlying compute is different (joining early-buyer tables, computing the weighted score) and because it benefits enormously from caching — every score is good for 5 minutes after computation.
Request:
curl -X POST https://madeonsol.com/api/v1/tokens/batch/buyer-quality \
-H "Authorization: Bearer msk_..." \
-H "Content-Type: application/json" \
-d '{ "mints": ["4k3Dyj...", "9bTpRf...", "2eY8Ww..."] }'
Response:
{
"tokens": [
{
"mint": "4k3Dyj...",
"score": 78,
"confidence": "high",
"signal": "positive",
"breakdown": {
"alpha_wallet_count": 3,
"kol_count": 2,
"bundle_buyer_count": 1,
"avg_historical_win_rate": 62.4,
"bot_dominated": false
},
"cached_at": "2026-05-14T11:38:42Z"
},
{
"mint": "9bTpRf...",
"score": 50,
"confidence": "low",
"signal": "neutral",
"breakdown": { ... },
"note": "Insufficient buyer data"
}
],
"count": 3,
"cache_hits": 1
}
cache_hits reports how many mints in the batch were served from cache. The cache is shared with the single-mint GET /v1/tokens/{mint}/buyer-quality endpoint and TTL'd at 5 minutes — if you'd called GET on a mint a minute ago, calling the batch on the same mint now returns instantly from memory.
For tokens with no early-buyer data yet, the response includes "note": "Insufficient buyer data" and a default neutral score of 50. Branch on note to skip these in your scoring logic.
For any mint where the batch score warrants a closer look, the cap-table endpoint returns the full per-wallet breakdown behind that single number — win rates, bundle flags, and KOL identities for every early buyer.
A worked example: sniper bot per-mint pre-filter
A sniper bot subscribing to the dex:trades firehose sees thousands of fresh mints per hour. Most are dust. The filter pipeline typically wants two cheap checks before deciding whether to act:
- Is the token old enough to have any meaningful data? (We track first-seen.)
- Is the early-buyer cohort high-quality? (Buyer-quality score.)
Step 2 is exactly what the buyer-quality batch is for. Group every fresh mint from the last 30 seconds into one call:
import { MadeOnSol } from "madeonsol";
const client = new MadeOnSol({ apiKey: process.env.MADEONSOL_API_KEY! });
// Collect fresh mints from your DEX firehose subscription...
const freshMints: string[] = pollFromQueue();
if (freshMints.length === 0) return;
// One API call instead of N
const { tokens, cache_hits } = await client.tokens.batchBuyerQuality({ mints: freshMints });
const qualifying = tokens.filter(
(t) => t.score >= 60 && t.confidence !== "low" && t.signal === "positive"
);
console.log(`${qualifying.length}/${tokens.length} mints qualify, ${cache_hits} cache hits`);
Be careful with cadence math. A loop that fires every 5 seconds all day makes 17,280 batch requests/day, so it is not remotely within a 200-request BASIC allowance. Batching reduces a 20-mint tick from 20 API requests to 1 — a 20× request-count reduction — but it does not make an unnecessarily aggressive polling loop free. Prefer event-driven collection and flush a batch only when you have work, or choose a cadence that fits the quota returned by /api/v1/me.
When to use batch vs single
- Use batch when you have a known set of mints to enrich. Scanner output, watchlist refresh, post-event lookup, periodic re-scoring of held positions.
- Use single when you have one mint and need it now. Webhook handlers, dashboard detail pages, manual lookups.
The batch is strictly cheaper from a rate-limit perspective when N ≥ 2, but it's also slightly more expensive on serialization (you're parsing 50 rows out of one response). For N=1 or N=2, just use the single endpoint.
Hard limits
- Max 50 mints per request. A request with more is rejected with a 400.
- Duplicates are deduplicated before processing.
[A, A, B]is treated as[A, B]. - Invalid base58 mints fail the whole request. Validate before sending.
- Database timeouts apply. A batch that takes longer than the per-route timeout fails entirely. In practice this means 50-mint batches should complete cleanly under normal load.
Tier access
| Endpoint | BASIC / Free | PRO | ULTRA | BUSINESS |
|---|---|---|---|---|
POST /v1/token/batch | yes | yes | yes (+ KOL wallet addresses) | yes (+ KOL wallet addresses) |
POST /v1/tokens/batch/buyer-quality | yes | yes | yes | yes |
Both batch routes currently use the normal authenticated API gate without an additional paid-tier gate. The token batch only exposes KOL wallet addresses in kol_activity.top_buyers to Ultra-class tiers (ULTRA, BUSINESS, and inherited Enterprise access). Do not infer the batch buyer-quality tier from the separate cap-table endpoint; they are different route policies.
Resources
- API reference
- Developer portal
- Buyer-quality score breakdown — how the score is computed
- Scanner endpoint — the typical batch input
Loops are for development. Batches are for production. Wrap your sniper's per-mint lookup in one call and watch the latency drop and the rate-limit pressure disappear.
Tools mentioned
Compare features and read reviews.
Live health scores, average ratings, and direct links on MadeOnSol.

FluxRPC
gRPC, WebSockets, and full RPC in one plan from $38/mo. No credits, no multipliers, no add-ons and nothing gated behind a higher tier.

extrnode
Decentralized Solana RPC gateway with auto-failover across a node cluster

Ankr
Decentralized Web3 infrastructure with Solana RPC endpoints

Nodit
Enterprise Web3 data and RPC infrastructure with indexed APIs, nodes, and event streams.

Caldera
High-performance blockchain infrastructure and rollup deployment platform
Build your own trading bot
KOL copy-trading, deployer sniping, and DEX trade streaming — all via API.
import { MadeOnSol } from "madeonsol";
const client = new MadeOnSol({ apiKey: "msk_your_key" });
// Mirror KOL trades in real-time
const { trades } = await client.kol.feed({ action: "buy" });
// Set up webhooks for instant alerts
const webhook = await client.webhooks.create({
url: "https://your-bot.com/hook",
events: ["kol:trade", "deployer:alert"],
});Building a product on Solana or Robinhood Chain data?
MadeOnSol isn't an RPC or another generic token API — it's Solana & Robinhood Chain memecoin intelligence that's painful to build in-house, pulled from dual-region gRPC shred streams and our own Robinhood Chain node, pushed to your app as events land.
Signals you'd otherwise build
KOL & smart-money flow from 2,000+ labeled wallets, deployer reputation, coordination clusters, linked-wallet entity resolution, and an all-DEX firehose.
Embed it in your product
The Business tier (€400/mo, self-serve) licenses you to display MadeOnSol data inside your own product — 500k calls/day, 15 WS + 6 firehose connections. Enterprise above adds white-label & redistribution rights and custom endpoints.
Evaluate first, commit later
Test everything on a free ULTRA key — no commitment. If it fits, we scope volume or white-label pricing.
Keep reading
More from the blog.

API Guides
Self-Throttling Clients: Read Your Quota From `/v1/me`, Stop Parsing Rate-Limit Headers
Most API clients learn about rate limits by getting 429'd. The MadeOnSol `/v1/me` endpoint gives you the same numbers in a structured response — daily quota used and remaining, burst window used and remaining, plus per-feature usage counts. Read it once per minute and your bot polices itself.

API Guides
is_blacklisted: A Sniper Safety Guard for Stablecoins, Wrapped SOL, LSTs, and Rugs
Every `/v1/token/{mint}` response carries `is_blacklisted` and `blacklist_category`. The categories — stablecoin, wrapped_sol, lst, rug-flagged — flag tokens that match a mint suffix or look right in a sniper scan but should never be bought. Filter at the data layer, not client-side.

Guides
How to Get pump.fun Token Trades via API: the Per-Mint Trade Tape (2026)
One GET returns every buy and sell on a pump.fun token, newest first, with the executed price, the pool price at that slot, the wallet and the early-buyer rank. Cursor paging, buy/sell and wallet filters, and what the coverage block tells you before you trust the numbers.

Guides
How to Stream New Solana Token Launches over WebSocket: Deploys, Graduations, Surges (2026)
One socket, three channels: sniper:deploys pushes every pump.fun launch a few hundred milliseconds before the chain confirms it, token:graduations pushes every bonding-curve completion, token:surges pushes young tokens running 3×, 6× or 8× against their launch cap. Handshake, real frames, filters, and what each channel does not tell you.

Guides
How to Track Solana KOL Wallet Trades via API: since-Cursor Polling or WebSocket Push (2026)
Two ways to follow the trades of 1,000+ tracked Solana KOL wallets: poll GET /api/v1/kol/feed with the next_since cursor, or subscribe to the kol:trades WebSocket channel. Real response fields, the per-KOL scores that ride on every row, and how to pick wallets from the leaderboard.

Developer Tools
White-Label Solana Data: What Redistribution Rights Actually Mean for Your Product (2026)
You can often embed a Solana data API in your app on a self-serve plan, but the moment you resell the data, expose it as your own feed, or strip the branding, you're in licensing territory most builders discover too late. This guide maps the three usage zones (internal use, user-facing display, redistribution), the questions to ask any data vendor before you build, and what an Enterprise data license actually covers: white-label, bulk export, extended caching, SLA, and dedicated limits.
Enjoyed this article?
Explore the live data.
Real-time KOL trades, Pump.fun deployer intel, and 1,200+ ranked Solana & Robinhood Chain tools — free to explore.
Open the KOL Tracker