Skip to content

paritytech/dotlake-sidecar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotlake-sidecar

A data ingestion pipeline for Polkadot-based blockchains that combines Substrate API Sidecar with a custom block ingest service.

Overview

dotlake-sidecar enables comprehensive data extraction and processing from Polkadot-based networks through three key components:

  • Substrate API Sidecar: REST service for blockchain data access
  • Custom Block Ingest Service: Data processing and storage pipeline
  • Apache Superset: Data visualization and analytics

Prerequisites

  • Docker and Docker Compose
  • Access to a Substrate-based blockchain node (WSS endpoint)
  • Sufficient storage space for blockchain data

Quick Start

  1. Clone the repository:
git clone https://github.com/your-org/dotlake-sidecar.git
cd dotlake-sidecar
  1. Configure your settings in config.yaml:
relay_chain: Polkadot
chain: Polkadot
wss: wss://polkadot-rpc.dwellir.com
databases:
  - type: mysql
    host: xx.xx.xx.xx
    port: 3306
    name: dotlake_sidecar_poc
    user: *****
    password: ******
ingest_mode: live  # live/historical
start_block: 1
end_block: 100
  1. Start the ingestion pipeline:
sh dotlakeIngest.sh

Architecture

1. Substrate API Sidecar

  • Connects to blockchain node via WebSocket
  • Exposes REST API on port 8080
  • Provides standardized access to blockchain data

2. Custom Block Ingest Service

Processes blockchain data through multiple stages:

  1. Data extraction from Sidecar API
  2. Transformation and enrichment
  3. Storage in chosen database:
    • MySQL
    • PostgreSQL
    • BigQuery

3. Apache Superset Integration

  • Custom visualization capabilities
  • Direct connection to stored data

Development

To contribute or modify:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

Apache 2.0

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published