ritual-dapp-backend - Backend patterns for Ritual dApp jobs
Provides backend patterns for indexing Ritual dApp events, tracking async jobs, serving results, and delivering updates.
Tags
Updated: 2026-10-12Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Index Ritual chain events
- Track asynchronous job states
- Monitor pending jobs
- Extract spcCalls results
- Decode HTTP and LLM results
- Serve REST, WebSocket, and SSE
- Serialize submissions per EOA
- Handle replayed events with upserts
- Deliver webhook results
Inputs
- Ritual chain RPC access
- On-chain events
- Transaction receipts
- Job transaction hashes
- Precompile identifiers
- Database connection
- Consumer contract events
Outputs
- Indexed job records
- Indexed event records
- Decoded job results
- Job status updates
- REST responses
- WebSocket or SSE updates
- Webhook deliveries
Requirements
- Ritual chain access
- Database write access
- Viem-compatible client
- AsyncJobTracker interface
- Consumer contract for callback results
