Wallet Providers
Spice Flow supports three major wallet providers. Choose the one that best fits your needs.Privy
Best for embedded wallets and social logins.| Option | Type | Description |
|---|---|---|
privyAppId | string | Your Privy application ID (required) |
embeddedWalletConfig | object | Embedded wallet behavior configuration |
embeddedWalletConfig.createOnLogin | 'off' | 'users-without-wallets' | 'all-users' | When to create embedded wallets |
- Sign up at privy.io
- Create a new app
- Copy your App ID from the dashboard
Dynamic
Best for multi-wallet support and flexible authentication.| Option | Type | Description |
|---|---|---|
dynamicEnvironmentId | string | Your Dynamic environment ID (required) |
- Sign up at dynamic.xyz
- Create a new project
- Copy your Environment ID from settings
Para
Best for Web3 onboarding and account abstraction.| Option | Type | Description |
|---|---|---|
paraApiKey | string | Your Para API key (required) |
paraAppName | string | Your application name (required) |
- Sign up at getpara.com
- Create a new application
- Copy your API key and app name
Supported Chains
Configure which chains your application supports.Default Chains
SwapWidget Configuration
Configure the swap widget behavior and appearance.Basic Configuration
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
swapBatches | ChainBatch[] | Required | Chain batches for execution |
supportedChains | number[] | Required | Array of supported chain IDs |
tokenAddress | string | '0x0' | Token address (0x0 for native) |
theme | 'light' | 'dark' | 'light' | Color theme |
showSlippageSettings | boolean | true | Show slippage configuration |
enableFlipSwap | boolean | true | Enable asset flip button |
styles | SwapWidgetStyles | - | Custom styling object |
Slippage Configuration
API Configuration
Configure the API endpoint for transaction submission.Default Configuration
By default, the SDK useshttps://tx-api.spicenet.io for transaction submission.
