@subql/node-ethereum

3.11.0 • 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

Running the app

$> subql-node

Commands:
  run force-clean  Force cleans the database, dropping project schemas and
                   tables (Once the command is executed, the application would
                   exit upon completion)

  run reindex      Reindex to specified block height (Once the command is
                   executed, the application would exit upon completion).

Options:
      --help                Show help                                  [boolean]
      --version             Show version number                        [boolean]
  -f, --subquery            Local path or IPFS cid of the subquery project
       [string] [required] [default: process.cwd()]
      --subquery-name       Name of the subquery project   [deprecated] [string]
  -c, --config              Specify configuration file                  [string]
      --local               Use local mode                [deprecated] [boolean]                              [boolean]
      --db-schema           Db schema name of the project               [string]
      --unsafe              Allows usage of any built-in module within the
                            sandbox                                    [boolean]
      --subscription        Enable subscription by create notification triggers
                                                      [boolean] [default: false]
      --batch-size          Batch size of blocks to fetch in one round  [number]
      --scale-batch-size    scale batch size based on memory usage
                                                      [boolean] [default: false]
      --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"]
      --timestamp-field     Enable/disable created_at and updated_at in schema
                                                      [boolean] [default: false]
  -d, --network-dictionary  Specify the dictionary api for this network [string]
      --dictionary-timeout  Max timeout for dictionary query            [number]
      --sponsored-dictionary  Use subquery network sponsored dictionary [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]
      --ipfs                IPFS gateway endpoint                       [string]
  -p, --port                The port the service will bind to           [number]
      --disable-historical  Disable storing historical state entities
                                                       [boolean] [default: true]
  -w, --workers             Number of worker threads to use for fetching and
                            processing blocks. Disabled by default.     [number]
      --multi-chain         Enables indexing multiple subquery projects into the
                            same database schema      [boolean] [default: false]

License

Apache-2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @subql/node-ethereum

Weekly Downloads

533

Version

3.11.0

License

GPL-3.0

Unpacked Size

1.02 MB

Total Files

193

Last publish

Collaborators

  • onfinality-admin
  • jay_ji