BlockReq
Back to all articles

Rpc Tutorials

Stonks Exchange launch listen: TokenLaunched stock-quote opens

Stonks Exchange / thestonks.exchange · StonkLauncher2: public WSS eth_subscribe on TokenLaunched (token / tokenId / creator / quote / pool / fee / launchTick). Register for 3M free requests monthly.

BlockReq EngineeringSeptember 16, 20265 min read

Stonks Exchange launch listen: TokenLaunched stock-quote opens

Stonks Exchange lists Basecat as a quote—on thestonks.exchange, StonkLauncher2 fires → TokenLaunched → new token + quote + pool + launchTick land as one open card. Base new-pool sniper watches PairCreated / Swap spikes; OpenLaunch one-tx watches v4 Initialize; BaseStonk AdvancedLauncher (0x74655F443D25c5d401a582c68dEA02ACd170E12f) has its own post on AdvancedLaunched. This post watches Stonks Exchange StonkLauncher2 factory 0x4714f6EC81639Ca59EEBE634490a4d8671DCe7B4 TokenLaunched stock-quote open radar.

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

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

Chain: Base EVM chainId = 0x2105 (8453). Public endpoints · eth_subscribe · Plans · Register.

1. Hook: stock-quote pair open

Tape feelOn-chain signalWatch
Sniper openfactory TokenLaunchedtoken · tokenId · creator · quote · pool · fee · launchTick
Quote sidequote (Basecat listed)highlight stock-quote pair on main stage
Meta / DevBuyTokenMetaSet / DevBuy (optional)secondary chips on same token
Radar tapehit → outboundDedupe = token + launchTx
ContractAddress (editable prefills)Role
StonkLauncher2 (proxy)0x4714f6EC81639Ca59EEBE634490a4d8671DCe7B4primary TokenLaunched
Implementation0x6a9f14e7742e8972fcf86429c5aa7db56589806dERC1967 impl
StonkQuoteRegistry20x4db9F13325A83662cf992184bc070755a212e95Bquote registry (Basecat list hook)
Fee locker0x71D1D363176723f85d98B8B430DF33cde89f0A7ffee locker

Sample launch tx: 0x72d2abe9fef721127c6c5301ee2b8f93d70c3738c9d30f0a5ff60e84955e910a (TokenLaunched + TokenMetaSet) · 0x0f6c917e0c3f7bd2be07d5d1e431691f75177f43287be8b5a87523f5ae67b36d. Product: thestonks.exchange/about.

2. Event: TokenLaunched

Keep local JSON FACTORY + TOKEN_LAUNCHED_TOPIC0. One Base public WSS: primary StonkLauncher2 TokenLaunched; stack quote / pool / launchTick on the card. Optional secondary chips: TokenMetaSet · DevBuy.

Step A · Subscribe factory TokenLaunched

{
  "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe",
  "params": ["logs", {
    "address": "0x4714f6EC81639Ca59EEBE634490a4d8671DCe7B4",
    "topics": ["0x61f1eebe27442a95a99d94de30c81be127888456287e5bd9fbb5a6105e1aaad3"]
  }]
}
  • topics[0]: TokenLaunched(address indexed token, uint256 indexed tokenId, address indexed creator, address quote, address pool, uint24 fee, int24 launchTick, uint256 totalSupply, address feeLocker)
  • topics[1] = token · topics[2] = tokenId · topics[3] = creator
  • data: quote · pool · fee · launchTick · totalSupply · feeLocker
  • Write launchState[token], tag stonks-exchange
FieldRule
padstonks-exchange
token / tokenId / creatorTokenLaunched topics
quote / pool / fee / launchTickdecoded data
totalSupply / feeLockerdecoded data
readyTokenLaunched seen

Step B · Optional TokenMetaSet / DevBuy

  • TokenMetaSet topic0 0xe955341eaabea23fe2bbd1074b7cce8c1b283cfb10fa0ae061f932c977ddbcd7 — stack onto the same token card as a meta chip
  • DevBuy topic0 0x84d429ed8af1c9cfe8bb07b556e4120e976c9f4c9232a7f50a15d31d83e232a9 — DevBuy secondary chip on the open window

Step C · Open-card fields

Outbound card first: token · tokenId · creator · quote · pool · fee · launchTick · totalSupply · feeLocker · launchTx · blockNumber · ts. RPC / endpoint stays in a collapsed secondary rail.

3. Run in the browser

Main stage is the TokenLaunched stock-quote open-card radar; RPC table stays collapsed. Register for 3M free requests monthly → blockreq.com.

4. Wrap

Stonks Exchange opens = StonkLauncher2 TokenLaunched + quote / pool / launchTick in one window. Public WSS on, open cards first, RPC tucked away. demos1 PR: blockreq/blog-demos#53.