Skip to content

Files

Latest commit

Sotatek-TanHoangSotatek-TanHoang
Sotatek-TanHoang
and
Sotatek-TanHoang
Apr 4, 2022
4e600bf · Apr 4, 2022

History

History

node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 26, 2021
Apr 4, 2022
Mar 1, 2022
Dec 15, 2020
Dec 15, 2020
Feb 15, 2021
Mar 14, 2022
Dec 29, 2021
Nov 4, 2021
Nov 16, 2021
Feb 14, 2021
Dec 15, 2020
Dec 15, 2020
Mar 24, 2022
Dec 15, 2020
Mar 24, 2022

@subql-node

Description

Indexer service in our @subql toolkit, can load user's subquery then fetch, process and persist to db accordingly.

Installation

$ npm i -g @subql/node

Running the app

$> subql-node
Options:
      --help                Show help                                  [boolean]
      --version             Show version number                        [boolean]
  -f, --subquery            Local path of the subquery project          [string]
      --subquery-name       Name of the subquery project                [string]
  -c, --config              Specify configuration file                  [string]
      --local               Use local mode                             [boolean]
      --force-clean         Force clean the database, dropping project schemas
                            and tables                                 [boolean]
      --batch-size          Batch size of blocks to fetch in one round  [number]
      --timeout             Timeout for indexer sandbox to execute the mapping
                            functions                                   [number]
      --debug               Show debug information to console output. will
                            forcefully set log level to debug
                                                      [boolean] [default: false]
      --profiler            Show profiler information to console output
                                                      [boolean] [default: false]
      --network-endpoint    Blockchain network endpoint to connect      [string]
      --output-fmt          Print log as json or plain text
                                           [string] [choices: "json", "colored"]
      --log-level           Specify log level to print. Ignored when --debug is
                            used
          [string] [choices: "fatal", "error", "warn", "info", "debug", "trace",
                                                                       "silent"]
      --migrate             Migrate db schema (for management tables only)
                                                      [boolean] [default: false]
      --timestamp-field     Enable/disable created_at and updated_at in schema
                                                       [boolean] [default: true]
  -d, --network-dictionary  Specify the dictionary api for this network [string]
  -m, --mmr-path            Local path of the merkle mountain range (.mmr) file
                                                                        [string]
      --proof-of-index      Enable/disable proof of index
                                                      [boolean] [default: false]
  -p, --port                The port the service will bind to
                                                        [number] [default: 3000]

License

Apache-2.0