Appearance
@swapped/connect-sdk / core / SwappedConnectConfig
Type Alias: SwappedConnectConfig
SwappedConnectConfig =
object
Defined in: src/config/config.types.ts:52
Configuration for createSwappedConnectClient.
Properties
apiBaseUrl?
optionalapiBaseUrl?:string
Defined in: src/config/config.types.ts:61
Swapped API base domain URL. Overrides the environment default.
config?
optionalconfig?:SwappedConnectCustomConfig
Defined in: src/config/config.types.ts:94
Optional SDK tuning (for example wallet transfer limit multipliers).
environment?
optionalenvironment?: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?
optionalmodules?: readonlySwappedConnectModule[]
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?
optionalplatform?: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?
optionalremoteConfigUrl?: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?
optionalsessionId?:string
Defined in: src/config/config.types.ts:76
Initial session ID to load.
wallets?
optionalwallets?:SwappedConnectWalletsConfig
Defined in: src/config/config.types.ts:92
Wallet module options.
widgetBaseUrl?
optionalwidgetBaseUrl?: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.