SDK

@xwin-finance/sdk

A SDK package that develop by xwin-finance team.

Installation

npm install @xwin-finance/sdk

Example of Usage

for FundV2 deposit,

import { SmartContractSdk } from "@xwin-finance/sdk";

const deposit = async () => {
  const sdk = await SmartContractSdk.start({
    rpcUrl: '<selected-rpc-url>',
    privateKey: '<your-private-key>',
  });

  const outout = await sdk.FundV2().deposit({
    contractAddress: "0x358f8203f102edef499ac197d76f29f7c40c5714",
    amount: 1000,
    slippage: 1,
  });
}

deposit();

for FundV2 withdraw,

for FundV2 rebalance,

for FundV2 rebalance,

Docs

please refer to the docs for more references

Last updated