BUY
or SELL
sdk
option allows you to configure various aspects of the underlying SDK directly within the widget configuration, ensuring that all SDK-level settings align with your application requirements.
userId
field allows you to attach a unique user identifier to each request, enabling comprehensive tracking and analytics capabilities. This identifier helps you monitor user behavior, analyze transaction patterns, and provide personalized experiences. The user ID should be a consistent, unique string that identifies individual users across sessions
fees.partner
parameter allows you to configure partner fees for each transaction processed through the widget. The partner
field expects a value in basis points (bps), where 100 bps equals 1% of the transaction volume. The maximum allowed fee is 10% (1000 bps) to ensure reasonable cost structures for end users
payoutAddress
in your configuration. This address will receive
the accumulated fees for each transaction. Alternatively, you can configure
this address via the developer portal for
centralized management across multiple integrationsformUpdateKey
is a critical component of the state management update system that triggers form re-rendering when configuration changes occur:
Redux Toolkit
Zustand
React Context
buildUrl
is set to true
in the widget configuration. This feature enables deep linking, shareable swap configurations, and easy integration with web analytics and tracking systems
Parameter | Type | Description | Example |
---|---|---|---|
fromAmount | string | Source token amount in token’s decimal format | 1000000 (1 USDC) |
fromChain | string | Source blockchain ID | 1 (Ethereum) |
fromToken | string | Source token contract address | 0xA0b86a33... |
toAddress | string | Destination wallet address | 0x742d35Cc... |
toChain | string | Destination blockchain ID | 137 (Polygon) |
toToken | string | Destination token contract address | 0x2791Bca1... |
fromAmount
,
fromChain
, fromToken
, toAddress
, toChain
, toToken
, and other
relevant parameters are not defined in the widget configuration object. If
both configuration values and URL parameters are present, the widget will
overwrite URL parameters with configuration values and update the URL
accordinglyallow
and deny
configuration options to give you precise control over which chains, tokens and liquidity sources can be utilized within your application. These filtering mechanisms enable you to create curated experiences that align with your business requirements, regulatory constraints, and user safety considerations
modulesFilter
parameter, enabling you to optimize for specific characteristics like gas efficiency, slippage, or execution speed
toAddress
option to configure the destination address. The address property is required, while the name and logoURI properties are optional