Get started
Setup
Example
import {
type WidgetConfig,
WidgetConfigProvider,
Widget,
} from '@aurora-is-near/intents-swap-widget';
const config: WidgetConfig = {
connectedWallets: {
default: '0x...',
ton: 'ABC123',
},
appFees: [
{
recipient: 'your.account.near',
fee: 25,
},
],
};
export default function App() {
return (
<WidgetConfigProvider config={config}>
<Widget />
</WidgetConfigProvider>
);
}Core options
connectedWallets
connectedWalletsproviders
providersplugins
pluginsonWalletSignin
onWalletSigninonWalletSignout
onWalletSignoutshowProfileButton
showProfileButtonCommon Options
apiKey
apiKeyreferral
referralenableAccountAbstraction
enableAccountAbstractionwalletSupportedChains
walletSupportedChainssendAddress
sendAddressslippageTolerance
slippageToleranceenableAutoTokensSwitching
enableAutoTokensSwitchingrefetchQuoteInterval
refetchQuoteIntervalallowedTokensList
allowedTokensListallowedSourceTokensList
allowedSourceTokensListallowedTargetTokensList
allowedTargetTokensListfilterTokens
filterTokensdefaultSourceToken
defaultSourceTokendefaultTargetToken
defaultTargetTokenchainsOrder
chainsOrdertopChainShortcuts
topChainShortcutsallowedChainsList
allowedChainsListallowedSourceChainsList
allowedSourceChainsListallowedTargetChainsList
allowedTargetChainsListchainsFilter
chainsFilterpriorityAssets
priorityAssetsfetchQuote
fetchQuotefetchSourceTokens
fetchSourceTokensfetchTargetTokens
fetchTargetTokensappFees
appFeesalchemyApiKey
alchemyApiKeytonCenterApiKey
tonCenterApiKeyhideSendAddress
hideSendAddresshideTokenInputHeadings
hideTokenInputHeadingsthemeParentElementSelector
themeParentElementSelectorlockSwapDirection
lockSwapDirectionshowTransactionHistory
showTransactionHistorydisabledInternalBalanceTokens
disabledInternalBalanceTokensshowConversionPreview
showConversionPreviewextraQuoteParameters
extraQuoteParametersconfidentialMode
confidentialModeLast updated
