Skip to main content
Tevm integrates with SolidJS using signals and resources for reactive data fetching.

Installation

Basic Resource Pattern

Use createResource for async data:

SolidStart Server Functions

Fetch data server-side:

Signals for Reactive State

Create reactive Ethereum state:

Polling with createEffect

Poll for block updates:

Multiple Resources

Fetch multiple addresses:

Context for Provider

Share provider across components:

Store Pattern

Use Solid stores for complex state:

Suspense Integration

Use with Solid’s Suspense:

Error Boundaries

Handle errors gracefully:

Next Steps