transferTokenToFundingWallet

Transferring from the user's trading wallet, managed by the dex manager smart contract, to the user's personal wallet (funding wallet) can only be done by the user. Therefore, if you lose your wallet's private key, there is no way to recover it, so please ensure safe storage.

Using Nectar SDK

import { Nectar } from "@wasd3rplay/nectar-sdk";
import { ethers } from "ethers";

const nectar = new Nectar();
const transferResult = await nectar.transferTokenToFundingWallet({
  ticker: "USDT_ETH",
  requestAmount: "1000", // 1000 USDT
});

Properties

  • ticker

    • The ticker of the token to transfer

  • requestAmount

    • The amount to transfer in the base (human-readable) unit

  • symbol (optional)

    • Market symbol can be specified. If not specified, it will use the market information for the market that is first found with the ticker.

  • signer (optional)

    • It's possible to specify a wallet other than the default user wallet provided by the Nectar SDK.

  • market (optional)

    • Directly specifying the market can reduce the load caused by market queries.