LifiRoutesRequest

data class LifiRoutesRequest(val fromChainId: String, val fromAmount: String, val fromTokenAddress: String, val toChainId: String, val toTokenAddress: String, val options: LifiRoutesRequestOptions? = null, val fromAddress: String? = null, val toAddress: String? = null, val fromAmountForGas: String? = null)

Describes a desired any-to-any transfer and contains all information necessary to calculate the most efficient routes

Constructors

Link copied to clipboard
constructor(fromChainId: String, fromAmount: String, fromTokenAddress: String, toChainId: String, toTokenAddress: String, options: LifiRoutesRequestOptions? = null, fromAddress: String? = null, toAddress: String? = null, fromAmountForGas: String? = null)

Properties

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 (e.g. 1000000 for 1 USDC (6 decimals)) (required)

Link copied to clipboard

The amount of the token to convert to gas on the destination side

Link copied to clipboard

The sending chain id (required)

Link copied to clipboard

The address of the sending Token (required)

Link copied to clipboard

Optional configuration for the routes

Link copied to clipboard
val toAddress: String? = null

The receiving wallet address

Link copied to clipboard

The id of the receiving chain (required)

Link copied to clipboard

The address of the receiving Token (required)