BlockReq
返回全部文章

實戰範例

Base $LAPTOP 流動性偵測工具:首池 Mint/Swap

$LAPTOP Base 開盤案例:公共 WSS eth_subscribe 首流動性 + Mint/Burn/Swap,早錢包集中度、首塊 Swap 簇、薄 LP 退出同屏偵測。註冊每月免費 3M 請求。

BlockReq Engineering2026年9月16日5 分鐘閱讀

BSCN 盤面把 $LAPTOP 開盤收到 首流動性 × 搶跑簇 × 薄 LP 節奏——這篇做 偵測工具:首流動性落地、Mint / Burn / Swap 密度、早錢包集中度、短窗搶跑簇、薄 LP 退出,同屏出卡。Base 新池搶跑 盯的是開盤尖刺計數;本篇盯 單盤流動性結構偵測。技術聽法,盤面訊號層。

公共端點開跑 · blockreq.com 註冊每月免費 3M 請求。

用途Endpoint
公共 HTTPShttps://base-rpc.blockreq.com/v1/rpc/public
公共 WSSwss://base-rpc.blockreq.com/v1/rpc/public
私有末尾 public → {API_KEY}(Key 放本地)

鏈:Base Mainnet EVM chainId = 0x2105(8453)。公開端點 · eth_subscribe · 套餐 · 註冊。

1. Hook:首池流動性 × 四路偵測

盤面語感鏈上訊號你盯什麼
首流動性pair/pool Mint · 首條 Syncamount0 · amount1 · firstMintTx
成交密度Swap 簇 · 首 N 塊 / 首 M 秒swapCount · unique buyers
早錢包集中同窗 Transfer to 去重 Top-Kholder share 粗估
薄 LP 退出Burn / 負向 ModifyLiquidityLP 撤出幅度 · 剩餘深度提示

把 $LAPTOP 的 token / pair / pool 地址粘進 UI 欄位即可開跑;同配方可複用到後續 Base 單盤開盤。

2. 事件:Mint / Burn / Swap + 早錢包

本地 JSON 維護 TOKEN · PAIR_OR_POOL(可編輯)+ SPIKE_WINDOW_SEC · SWAP_BURST · TOP_HOLDER_SHARE · BURN_MIN。同一條 Base 公共 WSS:窄聽該 pair/pool 的 Mint / Burn / Swap,並用 Transfer 統計早買家。

Step A · 訂 pair Mint + Burn + Swap

{
  "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe",
  "params": ["logs", {
    "address": "PAIR_OR_POOL",
    "topics": [[
      "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
      "0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496",
      "0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822"
    ]]
  }]
}
  • Mint topic · Burn topic · V2 Swap topic(V3/V4 池把 Swap topic 換成對應 ABI)。
  • 首條 Mint → firstLiquidity 卡;短窗 Swap 計數 ≥ SWAP_BURST → 搶跑簇卡;Burn 幅度 ≥ BURN_MIN → 薄 LP 退出卡。

Step B · 訂 token Transfer(早錢包集中)

{
  "jsonrpc": "2.0", "id": 2, "method": "eth_subscribe",
  "params": ["logs", {
    "address": "TOKEN",
    "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]
  }]
}
欄位規則
earlyBuyers首窗 Transfer to 去重集合
topShareTop-K 收款地址份額粗估
burstReadyswapCount ≥ SWAP_BURST 且 uniqueBuyers 達標
thinExitBurn / LP 撤出越過 BURN_MIN

Step C · 偵測卡欄位

{ chain: "base", pad: "laptop-liq", kind: "firstMint|swapBurst|holderConc|thinExit", token, pairOrPool, amount0, amount1, swapCount, uniqueBuyers, topShare, burnAmt, txHash, blockNumber, ts }

同 txHash + logIndex / 同窗 kind 去重;demo 擰地址與閾值。

3. 瀏覽器 demo(StackBlitz)

預設連 Base 公共 WSS;貼上 token / pair / pool + 窗長與閾值,點 Start 刷偵測卡。程式碼在 StackBlitz 裡看,文章只嵌預覽:

倉庫:blockreq/blog-demos → examples/base-laptop-sniper-liquidity-listen(Vite+React+viem;StackBlitz 開倉庫 root)。

WSS  → wss://base-rpc.blockreq.com/v1/rpc/public
HTTPS→ https://base-rpc.blockreq.com/v1/rpc/public
env  → TOKEN · PAIR_OR_POOL · SPIKE_WINDOW_SEC · SWAP_BURST · TOP_HOLDER_SHARE · BURN_MIN

換 keyed:WSS 末尾 public → {API_KEY}。開跑配額:blockreq.com 註冊每月免費 3M 請求。

4. 告警節奏

  1. Mint 到達 → 記 firstLiquidity · 開密度窗。
  2. Swap / Transfer 累積 → swapBurst · holderConc 閾值命中出卡。
  3. Burn 到達 → thinExit 卡 · 疊剩餘深度提示。
  4. 去重 → 同窗同 kind 合併;單 log 用 txHash + logIndex。

斷線後重連並重新 subscribe;空窗 HTTPS eth_getLogs 按塊段回補同一 pair/token。POST → https://base-rpc.blockreq.com/v1/rpc/public。

5. 小結 + CTA

  1. 粒度:Base 單盤偵測 = 首流動性 + Swap 簇 + 早錢包 + 薄 LP 退出。
  2. 配方:pair Mint/Burn/Swap + token Transfer + 窗閾值 → 偵測卡。
  3. 可跑:瀏覽器掛 BlockReq Base 公共 WSS;demos1 路徑見上。
  4. 開跑:公開端點 + blockreq.com 註冊每月免費 3M 請求。

下一步:固化 token/pair JSON → Webhook → 與 Base 新池搶跑 尖刺卡同屏疊層。文件 · 定價 · 註冊。