docs(flashblocks): clarify fallback behavior#1639
Conversation
🟡 Heimdall Review Status
|
33ee87f to
3fa9a94
Compare
|
Thanks for picking this up, @skye1e — this is exactly the gap I raised in base/base#3616, and the optimistic-vs-canonical split here reads really well. As the author of that issue, big +1 to landing this. A few small, additive suggestions that came out of the discussion on #3616 — all optional and non-blocking: 1. Concrete stall-detection thresholds. It helps app devs a lot to have suggested defaults rather than just "if the stream stalls." Something like:
Framing these as suggested defaults (not hard requirements) keeps it practical without over-prescribing. 2. Manual escape hatch for public RPC. Worth calling out explicitly: always surface the tx hash immediately after 3. Second RPC in the fallback path. As @Metavcl noted in the issue thread, teams on public RPC can keep a second Base RPC (e.g. a third-party provider) on the 4. One-liner worth making prominent. The rule that resonated most in the thread: "pending is for speed, receipt is the source of truth." Could work well as a callout at the top of the section. None of these should block merge — happy to see it go in as-is and iterate after. Thanks again for driving this. |
Adds fallback guidance for apps that use Flashblocks through public RPCs or third-party node providers.
pendingreads as optimistic UX statelatestreads as the source of truth for final UI stateAddresses base/base#3616
Checked:
git diff --checknpx mint validate(fails on an existingdocs.jsonnavigation reference to missingget-started/build-app)