Terra Documentation
  • Docs
  • Whitepaper
  • Agora
  • GitHub

›NODE SOFTWARE

Overview

  • Introduction
  • Columbus-3 Mainnet

Terra Protocol

  • How Terra Works
  • Developer Guide
  • MODULE SPECS

    • Auth
    • Bank
    • Supply
    • Distribution
    • Staking
    • Slashing
    • Oracle
    • Market
    • Treasury
    • Governance

User Manual

    NODE SOFTWARE

    • Installation
    • User Guide
    • Light Client Daemon
    • terracli Reference
    • Ledger Nano Support
    • Production Settings
    • Join a Network
    • Deploy a Testnet

Validator Handbook

  • Introduction
  • Validator FAQ
  • GUIDES

    • Getting Started
    • Security Best Practices
    • Exchange Rate Oracle

Contribute

  • Contribution guidelines for Terra Core
  • Help to translate

Light Client Daemon (LCD REST Server)

The Light Client Daemon (LCD), also known as "Terra-Lite", is a REST server that enables other applications and services to communicate with your local running terrad instance and interact the Terra network through HTTP. To start the LCD, you'll need to specify the following parameters:

ParameterTypeDefaultRequiredDescription
chain-idstring""truechain id of the full node to connect
nodeURLtcp://localhost:46657trueaddress of the full node to connect
laddrURLtcp://localhost:1317trueaddress for the REST server to listen to requests
trust-nodeboolfalsetruewhether this LCD is connected to a trusted full node
trust-storepath$HOME/.lcdfalsedirectory for save checkpoints and validator sets

For example:

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

You can enable the secure layer by adding the --tls flag. By default a self-signed certificate will be generated and its fingerprint printed out. You can configure the server to use a SSL certificate by passing the certificate and key files via the --ssl-certfile and --ssl-keyfile flags:

terracli rest-server --chain-id=test \
    --laddr=tcp://localhost:1317 \
    --node tcp://localhost:26657 \
    --trust-node=false \
    --tls \
    --ssl-certfile=mycert.pem --ssl-keyfile=mykey.key

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

Last updated on 12/1/2019
← User Guideterracli Reference →
Terra Documentation
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Follow @terra_money
© 2019 Terra