For the complete documentation index, see llms.txt. This page is also available as Markdown.

Firehose

This page documents the configuration flags for the Firehose component. For architectural concepts and how the Firehose component works, see Firehose Architecture.

Starting the Firehose

firecore start firehose [flags]

Core Configuration

Flag
Description
Default

--firehose-grpc-listen-addr

gRPC listening address

:10015

--common-live-blocks-addr

Relayer gRPC address for live blocks

:10014

--common-first-streamable-block

First block number available to stream

0

Storage Configuration

Flag
Description
Default

--common-merged-blocks-store-url

Merged blocks storage URL

file://{data-dir}/storage/merged-blocks

--common-one-block-store-url

One-block files storage URL

file://{data-dir}/storage/one-blocks

--common-forked-blocks-store-url

Forked blocks storage URL

file://{data-dir}/storage/forked-blocks

Performance Tuning

Flag
Description
Default

--firehose-enforce-compression

Require gzip or zstd compression

true

--firehose-rate-limit-bucket-size

Rate limit bucket size (-1 = unlimited)

-1

--firehose-rate-limit-bucket-fill-rate

Rate limit refill rate

10s

Discovery Service

For load-balanced deployments:

Flag
Description

--firehose-discovery-service-url

gRPC discovery service URL

Example Usage

Basic Local Setup

With Cloud Storage

With Rate Limiting

gRPC API

Firehose exposes the sf.firehose.v2.Stream service:

Streaming Modes

  1. Historical range: Specify start and stop block numbers

  2. Historical to live: Specify start, omit stop to continue streaming indefinitely

  3. Live only: Start from a recent block or "head"

  4. Cursor resume: Provide cursor from previous session

Last updated

Was this helpful?