Flashblocks are a new development on the Base L2 that allow for faster transaction confirmation times, with most pre-confirmations happening close to 200ms.Privy offers Flashblocks support on Base and Base Sepolia by default. There is nothing you need to do to enable Flashblocks support – your application automatically leverages Flashblocks pre-confirmations for faster transaction experiences.If you’d like to integrate your own Flashblocks provider instead of using Privy’s default offering, you can do so following the guide below.
To start, if you haven’t yet set up Privy, get your application on service set up with Privy’s basic functionality. Follow the linked quickstarts depending on yourIf using Privy’s React or Expo SDKs, install the @privy-io/chains package as well:
Next, get your custom Flashblocks RPC URL from your own RPC provider. Most RPC providers like Quicknode, Alchemy, and Infura offer Flashblocks RPCs for Base.
That’s it! Privy will now route transactions on Base and/or Base Sepolia through the Flashblocks RPC URL you configured. Transactions should execute with near-200ms pre-confirmation times.