xxxxxxxxxx
>>> Dec(5)
Dec("5.0")
>>> Dec("121.1232")
Dec("121.1232")
>>> Dec(121.1232)
Dec("121.1232")
xxxxxxxxxx
import { LCDClient, Coin } from 'terra.js';
const terra = new LCDClient({
URL: "https://lcd.terra.dev",
chainID: "columbus-3"
});
terra.market.swapRate(new Coin('uluna', 10000), 'ukrw').then(c => console.log(c.toString()));