Skip to main content

SwapHop

@totemsdk/omnia-router


@totemsdk/omnia-router / SwapHop

Interface: SwapHop

Extends​

Properties​

amount​

amount: bigint

Inherited from​

RoutingHop.amount


amountIn​

amountIn: bigint


amountOut​

amountOut: bigint


channelId​

channelId: string

Inherited from​

RoutingHop.channelId


from​

from: string

Inherited from​

RoutingHop.from


htlcId?​

optional htlcId?: string

Populated during payment execution

Inherited from​

RoutingHop.htlcId


inboundChannelId​

inboundChannelId: string


isSwap​

isSwap: true


outboundChannelId​

outboundChannelId: string


rate​

rate: string

"amountOut per amountIn" expressed as decimal string, e.g. "0.95"


to​

to: string

Inherited from​

RoutingHop.to


tokenId​

tokenId: string

Inherited from​

RoutingHop.tokenId


tokenIn​

tokenIn: string


tokenOut​

tokenOut: string