orbiter-util
v1.0.10
Published
```bash import OBUT from 'orbiter-util'; const obut = new OBUT(); const { actualSend } = obut.util.calculateAmount(tradingPair, new BigNumber(inputValue).multipliedBy(10 ** tradingPair.fromChain.decimals)); console.log("actualSend ===", actualSend); const
Downloads
19
Readme
Orbiter Util
Ex
import OBUT from 'orbiter-util';
const obut = new OBUT();
const { actualSend } = obut.util.calculateAmount(tradingPair, new BigNumber(inputValue).multipliedBy(10 ** tradingPair.fromChain.decimals));
console.log("actualSend ===", actualSend);
const res = await obut.util.sendTransaction(tradingPair, actualSend, "");
console.log('res ====', res);