Appearance
@swapped/connect-sdk / core / SwappedRemoteConfig
Type Alias: SwappedRemoteConfig
SwappedRemoteConfig =
object
Defined in: src/config/remote-config.types.ts:206
Versioned remote config document fetched from CloudFront.
schemaVersion must equal the v{n} path segment. A mismatch rejects the document and the SDK uses REMOTE_CONFIG_DEFAULTS.
networks and wallets are exceptions only — empty in steady state.
Properties
features
features:
SwappedRemoteConfigFeatures
Defined in: src/config/remote-config.types.ts:231
Global capability flags. Overridden per group/network through SwappedRemoteConfig.networks.
gateway
gateway:
SwappedRemoteConfigGateway
Defined in: src/config/remote-config.types.ts:226
Gateway host. baseUrl: null keeps the environment default.
limits
limits:
SwappedRemoteConfigLimits
Defined in: src/config/remote-config.types.ts:236
Numeric knobs (slippage, fiat minimums, Coinbase fees). Used as published; missing keys use baked-in defaults.
networks
networks:
Partial<Record<SwappedRemoteConfigNetworkKey,Partial<SwappedRemoteConfigFeatures>>>
Defined in: src/config/remote-config.types.ts:242
Per-group and per-network feature exceptions. Unknown keys and unknown flag names are ignored. Anything absent inherits from the tier above (features → networks.evm → networks.<network>).
revision
revision:
number
Defined in: src/config/remote-config.types.ts:217
Monotonic publish counter. Logging and cache debugging only; the SDK does not compare it. Default 0 in baked-in defaults.
schemaVersion
schemaVersion:
number
Defined in: src/config/remote-config.types.ts:212
Integer schema major. Must equal REMOTE_CONFIG_MAJOR_VERSION (the v1 CDN path segment). Default 1. A different value rejects the whole document.
updatedAt
updatedAt:
string|null
Defined in: src/config/remote-config.types.ts:222
ISO-8601 publish timestamp, or null when the snapshot is the baked-in default that was never published. Default null.
wallets
wallets:
Partial<Record<IntegrationProvider,SwappedRemoteConfigWalletOverride>>
Defined in: src/config/remote-config.types.ts:249
Per-wallet routing exceptions. Unknown provider keys are ignored. Anything absent keeps the baked-in wallet config.