Skip to main content
Create SQLite cache for Portal responses. Use with evmPortalStream to cache Portal API responses locally.
Parameters:
  • path: Path to the SQLite database file. The parent directory is created if it does not exist.
  • compress: Compress cached responses with zstd. Defaults to true.
Example:
Import from @subsquid/pipes/portal-cache/node instead of @subsquid/pipes/portal-cache.

When to Use

  • Development iteration
  • Testing pipelines
  • Repeated processing of same block ranges.