LifiStep

data class LifiStep(val id: String, val type: LifiStepType, val tool: String, val action: LifiAction, val toolDetails: LifiToolDetails? = null, val estimate: LifiEstimate? = null, val includedSteps: List<LifiInternalStep>? = null, val integrator: String? = null, val referrer: String? = null, val execution: JsonElement? = null, val transactionRequest: JsonElement? = null, val transactionId: String? = null, val gasCostUSD: String? = null, val fromAddress: String? = null, val toAddress: String? = null, val containsSwitchChain: Boolean? = null)

Step in a route

Constructors

Link copied to clipboard
constructor(id: String, type: LifiStepType, tool: String, action: LifiAction, toolDetails: LifiToolDetails? = null, estimate: LifiEstimate? = null, includedSteps: List<LifiInternalStep>? = null, integrator: String? = null, referrer: String? = null, execution: JsonElement? = null, transactionRequest: JsonElement? = null, transactionId: String? = null, gasCostUSD: String? = null, fromAddress: String? = null, toAddress: String? = null, containsSwitchChain: Boolean? = null)

Properties

Link copied to clipboard

The action of the step

Link copied to clipboard

Whether a chain switch is part of the route

Link copied to clipboard
val estimate: LifiEstimate? = null

The estimation for the step

Link copied to clipboard
val execution: JsonElement? = null

An object containing status information about the execution

Link copied to clipboard
val fromAddress: String? = null

The sending wallet address

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 step

Link copied to clipboard

Internal steps included in this step

Link copied to clipboard
val integrator: String? = null

A string containing tracking information about the integrator of the API

Link copied to clipboard
val referrer: String? = null

A string containing tracking information about the referrer of the integrator

Link copied to clipboard
val toAddress: String? = null

The receiving wallet address

Link copied to clipboard

The tool used for this step. E.g. relay

Link copied to clipboard

The details of the tool used for this step. E.g. relay

Link copied to clipboard
val transactionId: String? = null

The unique transaction ID for tracking

Link copied to clipboard
val transactionRequest: JsonElement? = null

An ether.js TransactionRequest that can be triggered using a wallet provider

Link copied to clipboard

The type of the step (swap, cross, or lifi)