⛏️swapVlry
Last updated
Last updated
The swapVlry
function swaps a specified amount of tokens for an equivalent value of the Volary token using Uniswap or Sushiswap DEXes.
Name | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Before making requests with Nest SDK, you must have it installed.
You can install Nest SDK using either npm
or yarn
. Use the following commands to install Nest SDK:
Here is an example of how to make a getSwapAmountVolary
request using the Nest SDK:
Crypto Wallets: The function can be used by crypto wallets to swap Ether for Volary tokens on supported DEX platforms like Uniswap, Sushiswap and Pancakeswap.
Cryptocurrency Exchanges: The function can be used by cryptocurrency exchanges to facilitate the buying and selling of Volary tokens using Ether on supported DEX platforms.
Crypto Traders: The function can be used by crypto traders to swap Ether for Volary tokens on supported DEX platforms and potentially gain profit from price differences between platforms.
inAmount
string
The amount of Ethereum to swap for Vlry tokens.
privateKey
string
The private key of the wallet performing the transaction.
exchange
string
The decentralized exchange to use for the swap. It can be either "uniswap" or "sushiswap".
slippage
string
The maximum percentage of slippage that can occur during the swap. Defaults to 50 (0.5%).
receipt
object
Returns a transaction receipt of the swap implementation