Sub-issue of #146 (Chain features on gateway)
Problem
Chain queries (provenance lookups, verification, lineage traversal) require on-chain calls which are slow and subject to RPC rate limits and timeouts. The MCP server already encountered issues with large block range queries (413 errors, timeouts).
Proposed Solution
Cache blockchain-anchored data in a local database (e.g., SQLite) so chain-related queries can be served from local storage with faster response times.
This would include:
- Provenance records (anchored hashes, timestamps, signers)
- Lineage chain relationships
- Verification results
Implementation
Details to be planned by the gateway developer. Considerations:
- Cache invalidation / freshness strategy
- What to index and store vs. what to always fetch live
- Database schema design
- Sync mechanism to keep local state up to date with on-chain state
Context
Part of the chain features epic (#146). This optimization is important for a seamless user experience when serving chain data through the gateway.
Sub-issue of #146 (Chain features on gateway)
Problem
Chain queries (provenance lookups, verification, lineage traversal) require on-chain calls which are slow and subject to RPC rate limits and timeouts. The MCP server already encountered issues with large block range queries (413 errors, timeouts).
Proposed Solution
Cache blockchain-anchored data in a local database (e.g., SQLite) so chain-related queries can be served from local storage with faster response times.
This would include:
Implementation
Details to be planned by the gateway developer. Considerations:
Context
Part of the chain features epic (#146). This optimization is important for a seamless user experience when serving chain data through the gateway.