tanstack
Installation
bun add @regent/tanstack @tanstack/react-startBasic Usage
import { createAgent } from '@regent/core';
import { http } from '@regent/http';
import { createTanStackRuntime } from '@regent/tanstack';
const agent = await createAgent({
name: 'my-agent',
version: '1.0.0',
})
.use(http())
.build();
const { runtime, handlers } = await createTanStackRuntime(agent);API Reference
createTanStackRuntime()
TanStackRuntime
Available Handlers
Route Setup
Route Structure
File-Based Route Example
Payment Middleware
createTanStackPaywall()
Options
Return Value
Usage
paymentMiddleware()
Supported Networks
EVM Networks
Solana Networks
Integration Example
Exports
Last updated