Note
This is a temporary package for TypeScript tooling for Tempo. It will be merged into Wevm repositories soon.
pnpm i tempo.ts| Entrypoint | Description |
|---|---|
tempo.ts/server |
Framework-agnostic server handlers. |
import { Handler } from 'tempo.ts/server'
import { account, client } from './config'
const handler = Handler.feePayer({
account,
client,
feeToken: '0x20c0…0001'
path: '/fee-payer',
})
createServer(handler.listener) // Node.js
Bun.serve(handler) // Bun
Deno.serve(handler) // Deno
app.all('*', c => handler.fetch(c.request)) // Elysia
app.use(handler.listener) // Express
app.use(c => handler.fetch(c.req.raw)) // Hono
export const GET = handler.fetch // Next.js
export const POST = handler.fetch // Next.jsOur contributor guidelines can be found in CONTRIBUTING.md.
See SECURITY.md.
Licensed under either of Apache License, Version 2.0 or MIT License at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.