LifiTransactionInfo

data class LifiTransactionInfo(val txHash: String, val txLink: String, val amount: String, val amountUSD: String? = null, val token: LifiToken, val chainId: String, val gasToken: LifiToken? = null, val gasAmount: String? = null, val gasAmountUSD: String? = null, val gasPrice: String? = null, val gasUsed: String? = null, val timestamp: Int? = null, val value: String? = null, val includedSteps: List<LifiIncludedSwapStep>? = null)

Transaction information

Constructors

Link copied to clipboard
constructor(txHash: String, txLink: String, amount: String, amountUSD: String? = null, token: LifiToken, chainId: String, gasToken: LifiToken? = null, gasAmount: String? = null, gasAmountUSD: String? = null, gasPrice: String? = null, gasUsed: String? = null, timestamp: Int? = null, value: String? = null, includedSteps: List<LifiIncludedSwapStep>? = null)

Properties

Link copied to clipboard

The amount of the transaction (required)

Link copied to clipboard
val amountUSD: String? = null

The amount of the transaction in USD

Link copied to clipboard

The id of the chain (required)

Link copied to clipboard
val gasAmount: String? = null

The amount of the gas that was paid

Link copied to clipboard
val gasAmountUSD: String? = null

The amount of the gas that was paid in USD

Link copied to clipboard
val gasPrice: String? = null

The price of the gas

Link copied to clipboard
val gasToken: LifiToken? = null

The token in which gas was paid

Link copied to clipboard
val gasUsed: String? = null

The amount of the gas that was used

Link copied to clipboard

An array of swap or protocol steps included in the LI.FI transaction

Link copied to clipboard
val timestamp: Int? = null

The transaction timestamp

Link copied to clipboard

Information about the token (required)

Link copied to clipboard

The hash of the transaction (required)

Link copied to clipboard

Link to a block explorer showing the transaction (required)

Link copied to clipboard
val value: String? = null

The transaction value