@subql/node-terra

0.7.1 • Public • Published

@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-terra

Running the app

$> subql-node-terra
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

Readme

Keywords

none

Package Sidebar

Install

npm i @subql/node-terra

Weekly Downloads

2

Version

0.7.1

License

Apache-2.0

Unpacked Size

794 kB

Total Files

142

Last publish

Collaborators

  • onfinality-admin
  • jay_ji