Lifi Route
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
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
Aggregation of the underlying gas costs in USD
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