Base Argument object for methods.

interface SwapTokensArgs {
    amountInMax: string | number;
    amountOut: string | number;
    keepAlive: boolean;
    path: AnyJson[];
    sendTo: string | number;
}

Hierarchy (view full)

Properties

amountInMax: string | number

Minimum amount of path[0] willing to deposit for the swap.

amountOut: string | number

The amount of path[1] to get from 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.