LifiRoute

data class LifiRoute(val id: String, val fromChainId: String, val fromAmountUSD: String, val fromAmount: String, val fromToken: LifiToken, val toChainId: String, val toAmountUSD: String, val toAmount: String, val toAmountMin: String, val toToken: LifiToken, val steps: List<LifiStep>, val gasCostUSD: String? = null, val fromAddress: String? = null, val toAddress: String? = null, val containsSwitchChain: Boolean? = null, val tags: List<String>? = null)

A route that can be used to realize a token transfer

Constructors

Link copied to clipboard
constructor(id: String, fromChainId: String, fromAmountUSD: String, fromAmount: String, fromToken: LifiToken, toChainId: String, toAmountUSD: String, toAmount: String, toAmountMin: String, toToken: LifiToken, steps: List<LifiStep>, gasCostUSD: String? = null, fromAddress: String? = null, toAddress: String? = null, containsSwitchChain: Boolean? = null, tags: List<String>? = null)

Properties

Link copied to clipboard

Whether a chain switch is part of the route

Link copied to clipboard
val fromAddress: String? = null

The sending wallet address

Link copied to clipboard

The amount that should be transferred including all decimals

Link copied to clipboard

The amount that should be transferred in USD

Link copied to clipboard

The id of the sending chain

Link copied to clipboard

The sending Token

Link copied to clipboard
val gasCostUSD: String? = null

Aggregation of the underlying gas costs in USD

Link copied to clipboard
val id: String

Unique identifier of the route

Link copied to clipboard

The steps required to fulfill the transfer

Link copied to clipboard
val tags: List<String>? = null

Tags associated with the route (e.g., "RECOMMENDED", "CHEAPEST", "FASTEST")

Link copied to clipboard
val toAddress: String? = null

The receiving wallet address

Link copied to clipboard

The estimated resulting amount of the toToken including all decimals

Link copied to clipboard

The minimal resulting amount of the toToken including all decimals

Link copied to clipboard

The estimated resulting amount of the toToken in USD as float with two decimals

Link copied to clipboard

The id of the receiving chain

Link copied to clipboard

The Token that should be transferred to