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).
Properties
Section titled “Properties”allowInsecureProxyUrl?
Section titled “allowInsecureProxyUrl?”
optionalallowInsecureProxyUrl?: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.
fetch?
Section titled “fetch?”
optionalfetch?: (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.
Parameters
Section titled “Parameters”string
RequestInit
Returns
Section titled “Returns”Promise<{ status: number; text: Promise<string>; }>
headers?
Section titled “headers?”
optionalheaders?: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.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?: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).