Skip to content

CelestiaAppFetcher: ingest from celestia-app (consensus node) #28

@tac0turtle

Description

@tac0turtle

Summary

Implement CelestiaAppFetcher satisfying the DataFetcher interface. Connects to a celestia-app (consensus/full) node via CometBFT RPC or gRPC instead of a celestia-node (light/bridge).

Motivation

Enables indexing without running a DA node — useful for operators already running validators or full nodes. Removes the hard dependency on celestia-node for data ingestion.

Approach

  • Query blocks via /block + /block_results, extract blobs from block data
  • Header subscription via CometBFT WebSocket /subscribe
  • Evaluate whether to use CometBFT RPC (HTTP) or gRPC (cosmos-sdk dependency tradeoff — may need the submit/ submodule pattern from Isolate cosmos-sdk dependency in a separate Go submodule #24)

Interface

Must satisfy DataFetcher:

  • GetHeader(ctx, height) (*Header, error)
  • GetBlobs(ctx, height, namespaces) ([]Blob, error)
  • GetNetworkHead(ctx) (*Header, error)
  • SubscribeHeaders(ctx) (<-chan *Header, error)
  • Close() error

Open Questions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions