github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/docs/cn/clients/lite/getting_started.md (about) 1 # 入门 2 3 要启动 REST 服务器,我们需要指定以下参数: 4 5 | 参数 | 类型 | 默认值 | 必填 | 描述 | 6 | ----------- | --------- | ----------------------- | ----- | ---------------------------- | 7 | chain-id | string | null | true | 要链接全节点的 chain id | 8 | node | URL | "tcp://localhost:46657" | true | 要链接全节点的地址和端口号 | 9 | laddr | URL | "tcp://localhost:1317" | true | 提供 REST 服务的地址和端口号 | 10 | trust-node | bool | "false" | true | 是否信任 LCD 连接的全节点 | 11 | trust-store | DIRECTORY | "$HOME/.lcd" | false | 保存检查点和验证人集的目录 | 12 13 示例: 14 15 ```bash 16 gaiacli rest-server --chain-id=test \ 17 --laddr=tcp://localhost:1317 \ 18 --node tcp://localhost:26657 \ 19 --trust-node=false 20 ``` 21 22 有关Gaia-Lite RPC的更多信息,请参阅 [swagger documentation](https://cosmos.network/rpc/) 23