Skip to content

@swapped/connect-sdk / core / SwappedConnectConfig

Type Alias: SwappedConnectConfig ​

SwappedConnectConfig = object

Defined in: src/config/config.types.ts:52

Configuration for createSwappedConnectClient.

Properties ​

apiBaseUrl? ​

optional apiBaseUrl?: string

Defined in: src/config/config.types.ts:61

Swapped API base domain URL. Overrides the environment default.


config? ​

optional config?: SwappedConnectCustomConfig

Defined in: src/config/config.types.ts:94

Optional SDK tuning (for example wallet transfer limit multipliers).


environment? ​

optional environment?: SwappedConnectEnvironment

Defined in: src/config/config.types.ts:59

Target Swapped environment. Applies default apiBaseUrl and widgetBaseUrl. Defaults to production. Pass staging for sessions created against the staging API. Explicit apiBaseUrl / widgetBaseUrl override the matching environment default.


modules? ​

optional modules?: readonly SwappedConnectModule[]

Defined in: src/config/config.types.ts:90

Payment modules to construct. Omit (or pass every module) to enable all. wallets and coinbase mount a hidden {widgetBaseUrl}/gateway iframe; exchangePay and cashApp do not. Accessing a module that was not listed throws MODULE_NOT_ENABLED. Payment method lists hide methods for modules that were left out.


platform? ​

optional platform?: SwappedPlatform

Defined in: src/config/config.types.ts:82

Runtime platform adapter. Omit on web to use the default browser platform. Required on React Native — pass createReactNativePlatform from @swapped/connect-sdk/react-native.


remoteConfigUrl? ​

optional remoteConfigUrl?: string

Defined in: src/config/config.types.ts:74

Override the remote config JSON URL. Honored only when both the host page and the URL are localhost (localhost / 127.0.0.1 / [::1]). Anywhere else the value is ignored with a console warning and the environment CloudFront URL is used instead (production.config.json or staging.config.json).


sessionId? ​

optional sessionId?: string

Defined in: src/config/config.types.ts:76

Initial session ID to load.


wallets? ​

optional wallets?: SwappedConnectWalletsConfig

Defined in: src/config/config.types.ts:92

Wallet module options.


widgetBaseUrl? ​

optional widgetBaseUrl?: string

Defined in: src/config/config.types.ts:66

Gateway host base domain URL (serves /gateway). Overrides the environment default. Localhost is allowed for development.