hoodchain - v0.1.0
    Preparing search index...

    Function subscribeFeed

    • Subscribe to the sequencer firehose: every L2 message the sequencer publishes, decoded to transactions ~100–300ms before they are queryable over RPC. Reconnects automatically with exponential backoff.

      Parameters

      Returns Promise<FeedSubscription>

      const sub = await subscribeFeed((msg) => {
      for (const tx of msg.transactions) console.log(tx.hash, tx.transaction.to)
      })
      // later: sub.close()