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: stringA ticker of the token to transfer.
It is a combination of a symbol, an underscore, and a chain symbol.
E.g.,
USDT_ETHSEPOLIA
amount: stringThe amount of token to transfer.
market: MarketA market whose base ticker or quote ticker matches the given ticker.
Options
signer?: WalletOptional
Default to
userWalletproperty ofNectarinstances.A wallet placing the order.
Returns
NectarTransferResultA result of the transaction.
Last updated