1.1.1 • Published 9 months ago
node-stargate v1.1.1
node-stargate
install
npm install node-stargate
support chains
["arb", "op", "polygon", "bsc", "avalanche", "fantom"]
initialization
import Stargate from "stargate-js";
const stg = new Stargate(privateKey, fromChain, toChain);
// example
const stg = new Stargate('xxx', 'arb', 'op');
add liquidity
const stg = new Stargate('xxx', 'arb', 'fantom');
// add 1USDT of arb chain to liquidity, so you should at least 1USDT on arb chain
stg.addLiquidity();
cross chain important!
// cross chain from arb to bsc
const stg = new Stargate('xxx', 'arb', 'bsc');
stg.startCrossChain();
stake LP
// stake LP of six chains.
const stg = new Stargate('xxx');
// stake LP of all six chains if there is LP exist
stg.stakeLP();