The One-Prop Setup
You don’t need to import separate components or manage sidebars. DevTools are built into theSorokitProvider. Simply toggle the devtools prop, and the inspector will appear in your development environment.
Smart Defaults
- Development Only: The DevTools panel automatically detects your environment. It renders when
process.env.NODE_ENVisdevelopmentand disappears entirely in your production build, adding zero weight to your final bundle. - Theme-Matched: The panel inherits your app’s own color tokens (
--background,--foreground, and the rest), so it renders in whatever light or dark theme your app is already in, with no extra setup.
Advanced Configuration
If you want the panel to be open by default when you refresh the page, you can pass a configuration object instead of a boolean.Key Features
- The Sends Log: Every time
useContractSendis triggered, a new entry appears. You can track the exact moment a transaction moves fromQUEUEDtoSIMULATING,NEEDS_SIGNATURE,SUBMITTING, and finallySUCCESS(orERROR), with the decoded args and result, the built transaction’s operation type, source account, and simulated minimum resource fee, a one-click copy of the transaction XDR, and — once the network accepts it — a link straight to the transaction on Stellar Expert. - Cache Inspector: A live view of every
@tanstack/react-queryentry Sorokit’s hooks have created, with a status breakdown (fresh, fetching, paused, stale, inactive) and each query’s key and observer count, so you can see exactly what’s cached without leaving your app.

