Start the light client daemon (LCD)
Start the light client daemon (LCD)#
The light client daemon (LCD) provides a REST-based adapter for the RPC endpoints, which also helps for decoding the Amino-encoded blockchain data into parseable JSON. This enables apps to communicate with a node through simple HTTP.
Important
The Terra SDKs currently rely on an active connection to a running LCD server. If you need a dedicated connection for the SDKs, set up an LCD.
To enable the REST API and Swagger, and to start the LCD, complete the following steps:
Open
~/.terra/config/app.toml.Locate the
API Configurationsection ([api]).Change
enable = falsetoenable = true.# Enable defines if the API server should be enabled.Optional: To enable Swagger, change
swagger = falsetoswagger = true.# Swagger defines if swagger documentation should automatically be registered. swagger = true
Restart.
Once restarted, the LCD will be available.
For more information about the Terra REST API endpoints, see the Swagger documentation.
For more information on configuring App.toml, see Configure general settings.