Lifi Routes Request
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
Properties
Link copied to clipboard
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
The address of the receiving Token (required)