BlockReq
Back to all articles

Rpc Tutorials

Flap BSC open-card tool: TokenCreated radar

Flap Portal TokenCreated: token / creator / nonce / name / symbol / meta in one log; optional LaunchedToDEX graduation to Pancake. Run on BSC public WSS. Register for 3M free requests monthly.

BlockReq EngineeringSeptember 16, 20265 min read

Flap BSC open-card tool: TokenCreated radar

Flap → Pancake graduation tape keeps printing on BSC—this post converges on Portal TokenCreated: token / creator / nonce / name / symbol / meta in one log; optional LaunchedToDEX for the graduation pool. Brew BNB twin pools watches same-cap PairCreated; here we watch Flap Portal open cards.

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

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

Chain: BNB Smart Chain EVM chainId = 0x38 (56). Public endpoints · eth_subscribe · Plans · Register.

1. Hook: Portal × TokenCreated

Tape feelOn-chain signalWatch
Flap openPortal TokenCreatedtoken · creator · nonce · name · symbol · meta
Graduate to PancakeLaunchedToDEX (optional)token · pool · amount · eth
Sniper tapehit → outboundDedupe = token + launchTx

Same family, different grain: Brew twin pools narrow to PairCreated pairs; Flap narrows to Portal launch open cards.

2. Event: Portal TokenCreated (+ optional LaunchedToDEX)

Local JSON prefills verified addresses (editable):

KeyValue
PORTAL0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0
TOKEN_CREATED_TOPIC00x504e7f360b2e5fe33cbaaae4c593bc55305328341bf79009e43e0e3b7f699603
LAUNCHED_TO_DEX_TOPIC0 (optional)0x6e4f47630b8745b8cacbd44f42a8a33e7eea7cc08ef22fc7630f4f385784ff7d
PCS_V2_FACTORY (hint)0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73

Signatures (ABI has no indexed fields; topic0 only, decode all from data):

TokenCreated(uint256 ts, address creator, uint256 nonce, address token, string name, string symbol, string meta)
LaunchedToDEX(address token, address pool, uint256 amount, uint256 eth)

Step A · Subscribe Portal TokenCreated

{
  "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe",
  "params": ["logs", {
    "address": "0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0",
    "topics": ["0x504e7f360b2e5fe33cbaaae4c593bc55305328341bf79009e43e0e3b7f699603"]
  }]
}
  • topics[0]: TokenCreated topic0 (verified against sample logs).
  • Decode data → ts / creator / nonce / token / name / symbol / meta.

Step B · Optional LaunchedToDEX

Subscribe 0x6e4f47630b8745b8cacbd44f42a8a33e7eea7cc08ef22fc7630f4f385784ff7d on the same Portal; decode token / pool / amount / eth; merge graduation fields by token.

Step C · Open-card fields

{ chain: "bsc", pad: "flap", token, creator, nonce, name, symbol, meta, ts, launchTx, blockNumber }

Dedupe on token + launchTx; demo knobs: Portal / topic0.

3. Browser demo (StackBlitz)

Default BSC public WSS; Portal + topic0 prefilled; hit Start for open cards. Code lives in StackBlitz — the post only embeds the preview:

Repo: blockreq/blog-demosexamples/flap-bsc-portal-token-created-listen (Vite+React+viem; open repo root in StackBlitz).

Product page: ZH · EN

WSS  → wss://bsc-rpc.blockreq.com/v1/rpc/public
HTTPS→ https://bsc-rpc.blockreq.com/v1/rpc/public
env  → PORTAL · TOKEN_CREATED_TOPIC0 · LAUNCHED_TO_DEX_TOPIC0

Keyed: swap trailing public for {API_KEY}. Quota: blockreq.com register for 3M free requests monthly.

4. Alert rhythm

  1. TokenCreated arrives → decode token / creator / nonce / name / symbol / meta.
  2. Optional graduation → matching LaunchedToDEX → attach pool.
  3. OutboundFlap BSC · token=… · symbol=… · creator=… · blk=….
  4. Dedupe → one push per token + launchTx.

On disconnect: reconnect and re-subscribe; gap-fill with HTTPS eth_getLogs on the same Portal. POST → https://bsc-rpc.blockreq.com/v1/rpc/public.

5. Summary + CTA

  1. Grain: Flap BSC open = Portal TokenCreated open cards.
  2. Recipe: Portal + TokenCreated topic0 (+ optional LaunchedToDEX) → cards.
  3. Runnable: browser on BlockReq BSC public WSS; demos1 paths above.
  4. Start: public endpoints + blockreq.com register for 3M free requests monthly.

Next: demos1 Deploy PASS → five-locale covers → R2 → video reply layer. Docs · Pricing · Register.