Skip to content

pando-project/fil-chain-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fil-chain-extractor

A collection of services which collects Filecoin chain status data, metrics and writes them to a document database or high performance HTAP database.

Usage

  1. Initialize the fil-chain-extractor(fce) repository. Repository path would be ~/.fil-chain-extractor if flag--repo-path is not set.

    fce init --repo-path <repo path>
    
  2. Edit configs(default file path is ~/.fil-chain-extractor/config.yaml) and setup database(mongo for the first version).

    Config example:

    api:
      httpapi:
        ListenAddress: /ip4/127.0.0.1/tcp/9000
        Version: v1
      httpjsonrpcapi:
        ListenAddress: /ip4/127.0.0.1/tcp/9010
        Version: v1
    lotusinfo:
      APIAddress: /ip4/127.0.0.1/tcp/1234
      Token: ""
    storage:
      DbType: mongo
      DSN: mongodb://user:password@127.0.0.1:27017/?directConnection=true
      RW: 2
    watcher:
      MinWatchInterval: 1s
      MaxWatchInterval: 10s
  3. Run daemon to listen to the chain head and extract chain states then persist extracted data into the user-specified database.

    fce daemon

Architecture

arch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages