Lifi class

Constructors

Lifi.new(Config config)
Initialize the main Lifi object with desired configs

Properties

api V1Endpoint
Initialize a connection to the Lifi API endpoint
latefinal
config Config
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
contractCall(ContractCallParams params) Future<ApiResponse>
Perform a contract call across blockchains
getChains() Future<ApiResponse>
Get information about all currently supported chains
getCollectedFees(GetCollectedFeesParams params) Future<ApiResponse>
Get integrator's collected fees data for all supported chains request all integrator's collected fees data by tokens for all supported chains.
getConnections({String? fromChain, String? toChain, String? fromToken, String? toToken, List<String>? allowBridges}) Future<ApiResponse>
Get all possible connections based on a from- or toChain
getGasPrice(GetGasPriceParams params) Future<ApiResponse>
Get gas price for the specified chainId
getGasPrices(GetGasPricesParams params) Future<ApiResponse>
Get gas prices for enabled chains
getGasPriceSuggestion(GetGasPriceSuggestionParams params) Future<ApiResponse>
Get a gas suggestion for the specified chain
getGasStatus(GetGasStatusParams params) Future<ApiResponse>
Get status information about a lifuel transaction
getPossibilities(GetPossibilitiesParams params) Future<ApiResponse>
Get information about available services, chains and tokens
getQuote(GetQuoteParams params) Future<ApiResponse>
Get a quote for a token transfer
getRoutes(GetRoutesParams params) Future<ApiResponse>
Get a set of routes for a request that describes a transfer of tokens
getStatus(GetStatusParams params) Future<ApiResponse>
Check the status of a cross chain transfer
getStepTransaction(dynamic params) Future<ApiResponse>
Get step transaction
getToken({required String chain, required String token}) Future<ApiResponse>
Fetch information about a Token
getTokens({List<String>? chains}) Future<ApiResponse>
Fetch all tokens known to the LI.FI services
getTools() Future<ApiResponse>
Get available bridges and exchanges
getTransactions(GetTransactionParams params) Future<ApiResponse>
Get all transactions for a wallet
getWithdrawTransactionRequest(GetWithdrawTransactionRequestParams params) Future<ApiResponse>
Get transaction request for withdrawing collected fees for the specified chain
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refetch(RefetchParams params) Future<ApiResponse>
Force relayer to refetch transaction
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited