Types

Link copied to clipboard

The LiFi API returned an error payload (a populated error field without throwing) while fetching routes, resolving a route step, or polling status. detail carries the API message so the underlying cause is surfaced instead of a misleading generic error.

Link copied to clipboard

The step's transaction request was invalid: either a required field (e.g. from/to) was missing, or a numeric field (e.g. value/gas) held a value that couldn't be parsed into a valid RPC hex quantity.

Link copied to clipboard

The LiFi transfer reached a FAILED terminal state.

Link copied to clipboard

A confirmation closure was not provided when constructing the Lifi instance.

Link copied to clipboard

A signing closure was not provided when constructing the Lifi instance.

Link copied to clipboard

The step did not contain a transaction request to sign.

Link copied to clipboard

No routes were returned for the requested trade.

Link copied to clipboard

Polling failed fast after hitting the configured maxConsecutiveErrors cap. cause carries the underlying error that triggered the failure.

Link copied to clipboard

Polling exceeded the configured timeout. When the timeout is reached while transient errors were being retried, cause carries the most recent underlying error so the root cause isn't lost.

Link copied to clipboard

The selected route contains no steps.

Link copied to clipboard

The provided route index is out of bounds.

Link copied to clipboard

On-chain confirmation failed or reverted for the given transaction hash.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?