var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Start the light client daemon (LCD)

The light client daemon (LCD) provides a REST-based adapter for the RPC endpoints, which also eases the process of decoding the Amino-encoded blockchain data into parseable JSON. This enables apps to communicate with a node through simple HTTP.

☢️caution

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:

  1. Open ~/.terra/config/app.toml.

  2. Locate the API Configuration section ([api]).

  3. Change enable = false to enable = true.


    _1
    # Enable defines if the API server should be enabled.

  4. Optional: To enable Swagger, change swagger = false to swagger = true.


    _2
    # Swagger defines if swagger documentation should automatically be registered.
    _2
    swagger = true

  5. 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.