Skip to content
docs

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.

optional allowInsecureBaseUrl?: 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).

Pick.allowInsecureBaseUrl


baseUrl: string

Defined in: protocol-swap2-core/dist/remote.d.ts:34

Endpoint prefix, e.g. “/api/v2/swap2” (same-origin) or absolute URL.

Pick.baseUrl


optional enabled?: () => boolean

Defined in: protocol-swap2-core/dist/remote.d.ts:38

Optional synchronous dark flag for accurate client-side discovery.

boolean

Pick.enabled


optional fetchImpl?: {(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.

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>

Pick.fetchImpl


optional headers?: Record<string, string>

Defined in: protocol-swap2-core/dist/remote.d.ts:113

Extra headers (e.g. auth) attached to every call.

Pick.headers


optional maxFeeBps?: 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.

AcrossPinsOptions.maxFeeBps


optional rpcUrls?: 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.


optional suggestedFeesUrl?: 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.


optional timeoutMs?: number

Defined in: protocol-swap2-core/dist/remote.d.ts:115

Per-request fail-closed timeout. Defaults to 12 seconds.

Pick.timeoutMs