BlockReq
Back to all articles

Rpc Tutorials

Catch stock-pair meme launches: quote/base ID + eth_subscribe

Spot meme launches where quote/base is a stock token: keep an address table, filter PairCreated on BlockReq RH public WSS, alert on new stock-pairs. Register for 3M free requests monthly.

BlockReq EngineeringSeptember 10, 20266 min read

Catch stock-pair meme launches: quote/base ID + eth_subscribe

When quote or base is a stock token, a meme lands with a stock-pair tag—hear that pair first on the tape. This post teaches: keep a stock-token address table, hang BlockReq public WSS on Robinhood Chain (EVM), filter PairCreated, and push new stock-pair opens as alerts.

Run on the public endpoint · blockreq.com register for 3M free requests monthly.

UseEndpoint
Public HTTPShttps://robinhood-mainnet-rpc.blockreq.com/v1/rpc/public
Public WSSwss://robinhood-mainnet-rpc.blockreq.com/v1/rpc/public
PrivateTrailing public{API_KEY} (keys stay local)

Chain: EVM chainId = 0x1237 (4663). Public endpoints · eth_subscribe · Plans · Register.

1. Hook: stock token as quote—catch the meme open

Tape feelOn-chain signalWatch
Stock as quote / basetoken0 or token1 ∈ stock address tableWhich side hit
Meme pair landsFactory PairCreatedpair / memeSide / stockSide
Open clusterPairCreated + first-block trade / first Mint clustervolume + first block
Hear before the crowdHit → push cardDedupe key = txHash / pair

Stock-pair meme = stock token as quote or base + new launch on the other side. ID lives in your local table; subscribe stays on narrow logs.

2. Two scenes: RH (PONS / LONG class) vs Solana Pumpfun Custom Pairs

SceneContextRunnable path here
Robinhood ChainPONS / LONG-class pads where stock tokens sit as quote/baseBlockReq public WSS + eth_subscribe (demo below)
Solana · Pumpfun Custom PairsSame tape narrative—custom pairs with a stock side; quote/base ID transfers as contextMarket-context contrast; runnable listen converges on EVM/RH

Both scenes share one ID move: maintain a stock-token table, then filter pair events. The browser-runnable demo uses the RH public endpoint.

Related: Stock-pairs launch · Anoncoin launch listen · PONS one-pad listen.

3. Identify: stock-token table → logs / eth_subscribe filter (EVM demo)

Keep a local JSON stock-token table (lowercase, deduped)—AAPL / TSLA / NVDA / LONG-class contracts. On each Factory push, table-lookup token0 / token1; either side hits → tag stock-pair.

Step A · Subscribe Factory PairCreated

{
  "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe",
  "params": ["logs", {
    "address": "0xYourFactoryOrPonsPad",
    "topics": ["0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9"]
  }]
}
  • topics[0]: Uniswap V2-style PairCreated (confirm against Factory ABI; PONS / LONG-class may swap an equivalent open topic).
  • Decode token0 / token1 / pair → table lookup → stockSide / memeSide.

Step B · Address-table latch (demo)

FieldRule
stockHittoken0 or token1 ∈ stock table
stockSideHit-side address + symbolHint
memeSideOther side (new launch)
roleHit side as quote or base (label by pool convention / path)

Step C · First-block volume / first Mint cluster (optional stack)

After a PairCreated hit, feed pair into a second narrow subscription (Swap / Mint). First in-window trade or add-liq cluster → stack first block / volume, then push the alert card.

4. Browser demo: BlockReq public endpoint + register for 3M free requests monthly

In the browser, connect RH public WSS, paste the stock table + Factory, hit Start, and stream stock-pair open cards. Live demos1 (already shipped):

:::pages-demo https://blockreq.com/demos1/stock-pair-meme-launch-listen/en/ title: Stock-pair meme launch listen height: 520 :::

Path hint: /demos1/stock-pair-meme-launch-listen/zh/ · /demos1/stock-pair-meme-launch-listen/en/. For keyed: swap trailing public for {API_KEY}.

Quota to start: blockreq.com register for 3M free requests monthly (public endpoint connects as-is).

5. Alert: new stock-pair → notify (volume / first block)

  1. PairCreated arrives → decode token0/1/pair; run stock-table hit check.
  2. Stock-pair hit → draft card { pair, stockSide, memeSide, role, factoryTx, blockNumber, ts }.
  3. Volume / first block → first in-window Swap or Mint cluster → firstBlock / earlyVolume.
  4. Outbound → webhook / board: stock-pair open · stock=… · meme=… · pair=… · blk=….
  5. Dedupe → one push per txHash / pair.

On disconnect: reconnect and re-subscribe; gap-fill with HTTPS eth_getLogs in block segments, replay the same table rules. POST → https://robinhood-mainnet-rpc.blockreq.com/v1/rpc/public.

6. CTA

  1. ID: stock-token table → quote/base hit → stock-pair tag.
  2. Recipe: Factory narrow logs + table lookup + volume/first-block stack → alert card.
  3. Runnable: Robinhood Chain public WSS eth_subscribe; demos1 is live on public WSS.
  4. Start: Public endpoints + blockreq.com register for 3M free requests monthly.

Next: pin the stock table as JSON → wire cards to webhooks → open the live demos1 page. Docs · Pricing · Register.