AcrossRemoteOptions
Defined in: protocol-swap2-across/src/remote.ts:35
What the pins hold a remote quote to beyond the user’s request: the app’s own fee cap.
Extends
Section titled “Extends”AcrossPinsOptionsPick<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
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
maxFeeBps?
Section titled “maxFeeBps?”
optionalmaxFeeBps?:number
Defined in: protocol-swap2-across/src/verify.ts:518
Fee cap in bps of the input (default ACROSS_DEFAULT_MAX_FEE_BPS, at most ACROSS_MAX_FEE_BPS_LIMIT) — the app’s, never the server’s.
Inherited from
Section titled “Inherited from”rpcUrls?
Section titled “rpcUrls?”
optionalrpcUrls?:Readonly<Record<string,string>>
Defined in: protocol-swap2-across/src/remote.ts:40
The app’s own JSON-RPC URLs per CAIP-2 chain: with both chains of a deposit here, its status is read on the device
(the source receipt and the destination’s fillStatuses), not asked of the backend.
suggestedFeesUrl?
Section titled “suggestedFeesUrl?”
optionalsuggestedFeesUrl?:string|null
Defined in: protocol-swap2-across/src/remote.ts:49
Across’s keyless relayer-fee quote, read by the app for every quote the backend sends (default
https://app.across.to/api/suggested-fees, through fetchImpl; a browser app’s CSP must allow it in
connect-src). Nothing secret is sent: the deposit’s tokens, chains, amount and recipient. null turns the read
off: a route the pinned floor covers (Ethereum, Optimism, Base, Arbitrum to Optimism, Base, Arbitrum) is then held
to the per-asset floor alone — a backend could get a deposit signed that pays relayers too little to fill, which
waits for its deadline and the refund — and every other route is refused.
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