Export

MsgSwap

interface MsgSwap {
    affiliate_address?: string;
    affiliate_basis_points: string;
    aggregator?: string;
    aggregator_target_address?: string;
    aggregator_target_limit?: string;
    destination?: string;
    order_type?: number;
    signer?: string;
    stream_interval?: number;
    stream_quantity?: number;
    target_asset: string;
    trade_target: string;
    tx: Tx;
}

Properties

affiliate_address?: string

the affiliate address which will receive any affiliate fee

Memberof

MsgSwap

affiliate_basis_points: string

the affiliate fee in basis points

Memberof

MsgSwap

aggregator?: string

the contract address if an aggregator is specified for a non-THORChain SwapOut

Memberof

MsgSwap

aggregator_target_address?: string

the desired output asset of the aggregator SwapOut

Memberof

MsgSwap

aggregator_target_limit?: string

the minimum amount of SwapOut asset to receive (else cancelling the SwapOut and receiving THORChain's output)

Memberof

MsgSwap

destination?: string

the destination address to receive the swap output

Memberof

MsgSwap

order_type?: number

0 if a market order (immediately completed or refunded), 1 if a limit order (held until fulfillable)

Memberof

MsgSwap

signer?: string

the signer (sender) of the transaction

Memberof

MsgSwap

stream_interval?: number

the interval (in blocks) to execute the streaming swap

Memberof

MsgSwap

stream_quantity?: number

number of swaps to execute in a streaming swap

Memberof

MsgSwap

target_asset: string

the asset to be swapped to

Memberof

MsgSwap

trade_target: string

the minimum amount of output asset to receive (else cancelling and refunding the swap)

Memberof

MsgSwap

tx: Tx

Memberof

MsgSwap

Generated using TypeDoc