LI.FI Documentation
LI.FI's Website
API Reference
Searchβ¦
π
Overview
π
Why, What & FAQ
β
Supported Chains, Bridges, and Exchanges
Integrate LI.FI's JS SDK
1β£
Install LI.FI SDK
2β£
Set up the SDK
3β£
Request a Route
4β£
Execute a Route (Transfer)
π
Advanced Features
β
LI.FI SDK Interface
π΅
Testing your Integration
More Integration Options
β
LI.FI API
πΌ
LI.FI Widget
Getting Started
Configuration
Drawer Mode
Customization
Wallet Management
React Router Compatibility
API Reference
π₯
LI.FI Embeddable
π
LI.FI Link Parameterization
π
LI.FI Subgraphs
Special Integrations
DEX & DEX aggregators
Mobile/Gaming Wallets
Integrator Fees
Smart Contracts
Overview
Contracts
Deployments
Audits
Support & Misc.
API Status
Discord Support
Telegram Support
Twitter
Github
Powered By
GitBook
API Reference
Main properties of the widget configuration object.
LiFiWidget
and
LiFiWidgetDrawer
components share the same configuration object.
Name
Type
Default
Description
Example
integrator
string
β
Identifier of the integrator
Ethereum
fromChain
string | number
The user's current wallet chain
Source chain ID or chain abbreviation
ARB
fromToken
string
β
Token Contract Address
0x539bde0d7dbd336b79148aa742883198bbf60342
toChain
string | number
eth
Destination chain ID or chain abbreviation
POL
toToken
string
β
Destination token contract address
0xd6df932a45c0f255f85145f286ea0b292b21c90b
fromAmount
number
0
Token amount to swap
250.5
disabledChains
number[]
β
Chains to disable
[56]
appearance
'light' | 'dark' | 'auto'
'auto'
Default appearance of the widget
'dark'
disableAppearance
boolean
false
Removes appearance settings UI
true
disableTelemetry
boolean
false
Disables sending crash reports and analytics to LI.FI
false
containerStyle
CSSProperties
β
Styles for the widget container element
β
See here
β
theme
ThemeConfig
β
Sets palette, shape, and typography
β
See here
β
walletManagement
WidgetWalletManagement
β
Set of callbacks to manage widget wallet state
β
See here
β
Previous
React Router Compatibility
Next - More Integration Options
LI.FI Embeddable
Last modified
7d ago
Copy link