transferToFundingWallet

The transferToFundingWallet() method of Nectar instances transfers a token from a trading wallet to the user's Web3 (funding) wallet.

Usage

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

const nectar = new Nectar();

const ticker = "WETH_ETHSEPOLIA";

const market = await nectar.getMarketByTicker(ticker);
const res = await nectar.transferToFundingWallet(ticker, "10.5", market);

Parameters

  • ticker: string

    • A ticker of the token to transfer.

    • It is a combination of a symbol, an underscore, and a chain symbol.

    • E.g., USDT_ETHSEPOLIA

  • amount: string

    • The amount of token to transfer.

  • market: Market

    • A market whose base ticker or quote ticker matches the given ticker.

Options

  • signer?: Wallet

    • Optional

    • Default to userWallet property of Nectar instances.

    • A wallet placing the order.

Returns

  • NectarTransferResult

    • A result of the transaction.

Last updated