Base Argument object for methods.

interface SwapExactTokensArgs {
    amountIn: string | number;
    amountOutMin: string | number;
    keepAlive: boolean;
    path: AnyJson[];
    sendTo: string | number;
}

Hierarchy (view full)

  • Args
    • SwapExactTokensArgs

Properties

amountIn: string | number

The amount of path[0] to swap for path[1].

amountOutMin: string | number

Minimum amount of path[1] willing to receive after the swap.

keepAlive: boolean

Limit the amount of path[0] taken to keep the account from being reaped.

path: AnyJson[]

The path of the assets in to be swapped, as an array of XCM Locations.

sendTo: string | number

Destination addres for the amount of path[1] tokens swapped.