Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Latest commit

 

History

History
71 lines (50 loc) · 2.13 KB

endpoint.md

File metadata and controls

71 lines (50 loc) · 2.13 KB

lisk-core endpoint

Invokes the provided endpoint.

lisk-core endpoint:invoke ENDPOINT [PARAMS]

Invokes the provided endpoint.

USAGE
  $ lisk-core endpoint:invoke ENDPOINT [PARAMS]

ARGUMENTS
  ENDPOINT  Endpoint to invoke
  PARAMS    Endpoint parameters (Optional)

OPTIONS
  -d, --data-path=data-path  Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH"
                             can also be used.

  -f, --file=file            Input file.

  --pretty                   Prints JSON in pretty format rather than condensed.

EXAMPLES
  endpoint:invoke {endpoint} {parameters}
  endpoint:invoke --data-path --file
  endpoint:invoke generator_getAllKeys
  endpoint:invoke consensus_getBFTParameters '{"height": 2}' -d ~/.lisk/pos-mainchain --pretty
  endpoint:invoke consensus_getBFTParameters -f ./input.json

See code: dist/commands/endpoint/invoke.ts

lisk-core endpoint:list [ENDPOINT]

Lists registered endpoints.

USAGE
  $ lisk-core endpoint:list [ENDPOINT]

ARGUMENTS
  ENDPOINT  Endpoint name (Optional)

OPTIONS
  -d, --data-path=data-path  Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH"
                             can also be used.

  -i, --info                 Prints additional info; Request and Response objects.

  -m, --module=module        Parent module.

  --pretty                   Prints JSON in pretty format rather than condensed.

EXAMPLES
  endpoint:list
  endpoint:list {endpoint} -m {module}
  endpoint:list {endpoint} -m {module} -i
  endpoint:list -m validator
  endopint:list getBalance
  endpoint:list get -m token 
  endpoint:list getBalances -m token -i --pretty
  endpoint:list getBalances -m token -d ~/.lisk/pos-mainchain

See code: dist/commands/endpoint/list.ts