Skip to content
docs

EnsCcipViaProxyOptions

Defined in: names-ens/src/ccip-proxy.ts:12

The app side of createEnsCcipHandler (@anywalletkit/names-ens/server): a fetch for ensResolver({ rpcUrl, ccip: { fetch } }) that sends each CCIP-Read gateway request to your server, which asks the gateway (https only, public addresses only, no redirects) and returns its answer. The device itself then only ever talks to your server, so a gateway’s redirect cannot reach the user’s network.

Runs on React Native / Hermes: fetch, JSON and timers only (no URL, no AbortSignal.timeout).

optional allowInsecureProxyUrl?: boolean

Defined in: names-ens/src/ccip-proxy.ts:20

Accept http:// for a proxy on this machine (localhost, 127.0.0.1, [::1]) during development. Default false.


optional fetch?: (url, init) => Promise<{ status: number; text: Promise<string>; }>

Defined in: names-ens/src/ccip-proxy.ts:18

The fetch that reaches your server. Default: the global one.

string

RequestInit

Promise<{ status: number; text: Promise<string>; }>


optional headers?: Readonly<Record<string, string>>

Defined in: names-ens/src/ccip-proxy.ts:14

Headers for your server, e.g. { authorization: 'Bearer …' }. They go to the proxy only, never to the gateway.


optional timeoutMs?: number

Defined in: names-ens/src/ccip-proxy.ts:16

Per request, proxy round trip included. Default 15 s (the server’s own gateway timeout is 10 s).