ZeroExRemoteOptions
Defined in: protocol-swap2-0x/src/remote.ts:185
Extends
Section titled “Extends”ZeroExPinsConfigPick<RemoteProviderOptions,"baseUrl"|"enabled"|"fetchImpl"|"headers"|"timeoutMs"|"allowInsecureBaseUrl">
Properties
Section titled “Properties”allowInsecureBaseUrl?
Section titled “allowInsecureBaseUrl?”
optionalallowInsecureBaseUrl?:boolean
Defined in: protocol-swap2-core/dist/remote.d.ts:109
Allow a non-https absolute baseUrl (local development only). Quotes, builds and typed orders travel this
channel; over plain http anyone on the path can rewrite them (scan 2026-10-27 modules, F4).
Inherited from
Section titled “Inherited from”Pick.allowInsecureBaseUrl
baseUrl
Section titled “baseUrl”baseUrl:
string
Defined in: protocol-swap2-core/dist/remote.d.ts:34
Endpoint prefix, e.g. “/api/v2/swap2” (same-origin) or absolute URL.
Inherited from
Section titled “Inherited from”Pick.baseUrl
chains?
Section titled “chains?”
optionalchains?:Readonly<Record<number,ZeroExChain|null>>
Defined in: protocol-swap2-0x/src/remote.ts:151
Inherited from
Section titled “Inherited from”defaultSlippageBps?
Section titled “defaultSlippageBps?”
optionaldefaultSlippageBps?:number
Defined in: protocol-swap2-0x/src/remote.ts:157
The most slippage accepted when a request names none, bps. Default 50; keep it in step with the backend’s default.
Inherited from
Section titled “Inherited from”ZeroExPinsConfig.defaultSlippageBps
enabled?
Section titled “enabled?”
optionalenabled?: () =>boolean
Defined in: protocol-swap2-core/dist/remote.d.ts:38
Optional synchronous dark flag for accurate client-side discovery.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Pick.enabled
fetchImpl?
Section titled “fetchImpl?”
optionalfetchImpl?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: protocol-swap2-core/dist/remote.d.ts:111
Defaults to globalThis.fetch — injectable for tests.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
Inherited from
Section titled “Inherited from”Pick.fetchImpl
headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: protocol-swap2-core/dist/remote.d.ts:113
Extra headers (e.g. auth) attached to every call.
Inherited from
Section titled “Inherited from”Pick.headers
rpcUrls?
Section titled “rpcUrls?”
optionalrpcUrls?:Readonly<Record<number, readonlystring[]>>
Defined in: protocol-swap2-0x/src/remote.ts:153
JSON-RPC endpoints per EVM chain id — the app’s own, for the Settler registry read.
Inherited from
Section titled “Inherited from”settlerMaxAgeMs?
Section titled “settlerMaxAgeMs?”
optionalsettlerMaxAgeMs?:number
Defined in: protocol-swap2-0x/src/remote.ts:154
Inherited from
Section titled “Inherited from”ZeroExPinsConfig.settlerMaxAgeMs
settlerResolver?
Section titled “settlerResolver?”
optionalsettlerResolver?:SettlerResolver
Defined in: protocol-swap2-0x/src/remote.ts:155
Inherited from
Section titled “Inherited from”ZeroExPinsConfig.settlerResolver
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: protocol-swap2-core/dist/remote.d.ts:115
Per-request fail-closed timeout. Defaults to 12 seconds.
Inherited from
Section titled “Inherited from”Pick.timeoutMs