Skip to content

@swapped/connect-sdk / core / SwappedRemoteConfig

Type Alias: SwappedRemoteConfig ​

SwappedRemoteConfig = object

Defined in: src/config/remote-config.types.ts:232

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, wallets, and paymentMethods are exceptions only - empty in the baked-in default.

Properties ​

features ​

features: SwappedRemoteConfigFeatures

Defined in: src/config/remote-config.types.ts:257

Global capability flags. Overridden per group/network through SwappedRemoteConfig.networks.


gateway ​

gateway: SwappedRemoteConfigGateway

Defined in: src/config/remote-config.types.ts:252

Gateway host. baseUrl: null keeps the environment default.


limits ​

limits: SwappedRemoteConfigLimits

Defined in: src/config/remote-config.types.ts:262

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:268

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>).


paymentMethods ​

paymentMethods: SwappedRemoteConfigPaymentMethod[]

Defined in: src/config/remote-config.types.ts:284

Per-payment-method limit exceptions. Match on provider + providerType. Unknown keys are dropped. Anything absent uses SwappedRemoteConfigLimits.exchangePayMaxAmountFiat (or the equivalent default for that product).


revision ​

revision: number

Defined in: src/config/remote-config.types.ts:243

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:238

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:248

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:275

Per-wallet routing exceptions. Unknown provider keys are ignored. Anything absent keeps the baked-in wallet config.