VyBuildTokenSwapRequest

\!! DESCRIPTION MISSING !!

Properties

Field
Type
Description
Required

walletId

string

The wallet `ID` of the source wallet

βœ—

destinationWalletId

string

The wallet `ID` of the destination wallet

βœ—

fromSecretType

The blockchain of source wallet

βœ—

toSecretType

The blockchain of the destination wallet

βœ—

fromToken

string

Source token contract address

βœ—

toToken

string

Destination token contract address

βœ—

inputAmount

number

The amount of tokens to swap

βœ—

outputAmount

number

The amount of tokens to recieve

βœ—

orderType

The type of order. We only allow `SELL` and `BUY`.

βœ—

exchange

The name of exchange to use for the swap

βœ—

enableGasEstimate

boolean

Indicate to include gas estimate (response will contain value for the `gas` field). The response will include the `gasLimit` that needs to be used to execute the swap.

βœ—

References

Operation

Last updated