A wrapper typescript package that wraps the Loopso smart contracts. Intended to be used for dapps.
npm install --save loopso-bridge-sdk
Import the necessary functions and models:
import { bridgeTokens } from 'loopso-bridge-sdk';
Then you will need to get a quote:
const _txHash = await bridgeTokens(
contractAddressSrc,
signer,
srcChainId,
amount,
dstAddress,
dstChain
);