Make a connection
Users can interact with the blockchain to query data or broadcast 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. Feather.js abstracts away the details of making raw API calls and provides an interface with which you can work.
_11import { LCDClient } from '@terra-money/feather.js';_11_11const lcd = new LCDClient({_11 'pisco-1': {_11 lcd: 'https://pisco-lcd.terra.dev',_11 chainID: 'pisco-1',_11 gasAdjustment: 1.75,_11 gasPrices: { uluna: 0.015 },_11 prefix: 'terra', // bech32 prefix, used by the LCD to understand which is the right chain to query_11 },_11});