cosmos-sdk/docs/interfaces/lite/getting_started.md

1.2 KiB

Getting Started

To start a REST server, we need to specify the following parameters:

Parameter Type Default Required Description
chain-id string null true chain id of the full node to connect
node URL "tcp://localhost:46657" true address of the full node to connect
laddr URL "tcp://localhost:1317" true address to run the rest server on
trust-node bool "false" true Whether this LCD is connected to a trusted full node
trust-store DIRECTORY "$HOME/.lcd" false directory for save checkpoints and validator sets

For example:

gaiacli rest-server --chain-id=test \
    --laddr=tcp://localhost:1317 \
    --node tcp://localhost:26657 \
    --trust-node=false

For more information about the Gaia-Lite RPC, see the swagger documentation