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.
| Use | Endpoint |
|---|---|
| Public HTTPS | https://bsc-rpc.blockreq.com/v1/rpc/public |
| Public WSS | wss://bsc-rpc.blockreq.com/v1/rpc/public |
| Private | Trailing 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 feel | On-chain signal | Watch |
|---|---|---|
| Flap open | Portal TokenCreated | token · creator · nonce · name · symbol · meta |
| Graduate to Pancake | LaunchedToDEX (optional) | token · pool · amount · eth |
| Sniper tape | hit → outbound | Dedupe = 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):
| Key | Value |
|---|---|
PORTAL | 0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0 |
TOKEN_CREATED_TOPIC0 | 0x504e7f360b2e5fe33cbaaae4c593bc55305328341bf79009e43e0e3b7f699603 |
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]:TokenCreatedtopic0 (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-demos → examples/flap-bsc-portal-token-created-listen (Vite+React+viem; open repo root in StackBlitz).
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
- TokenCreated arrives → decode token / creator / nonce / name / symbol / meta.
- Optional graduation → matching LaunchedToDEX → attach pool.
- Outbound →
Flap BSC · token=… · symbol=… · creator=… · blk=…. - 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
- Grain: Flap BSC open = Portal
TokenCreatedopen cards. - Recipe: Portal + TokenCreated topic0 (+ optional LaunchedToDEX) → cards.
- Runnable: browser on BlockReq BSC public WSS; demos1 paths above.
- 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.