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

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.


_11
import { LCDClient } from '@terra-money/feather.js';
_11
_11
const 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
});