Make a connection
Users can interact with the blockchain by using the following modes:
- Querying data
- Broadcasting a transaction
Connect to a chain
To perform these actions, connect to the blockchain by using an LCDClient object, which represents a connection to a node running the light client daemon (LCD). The LCD serves as a RESTful API over HTTP. Fluid.js abstracts away the details of making raw API calls and provide an interface with which you can work.
_6import { LCDClient } from "@terra-money/terra.js";_6_6const terra = new LCDClient({_6 URL: "https://phoenix-lcd.terra.dev",_6 chainID: "phoenix-1",_6});