Skip to content
docs

ensCcipViaProxy

ensCcipViaProxy(proxyUrl, opts?): (url, init) => Promise<Response>

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

fetch for EnsCcipOptions.fetch through your server’s CCIP-Read route: ensResolver({ rpcUrl, ccip: { fetch: ensCcipViaProxy('https://api.example.com/ccip', { headers }) } }). The proxy URL must be https (or a local http one with allowInsecureProxyUrl).

string

EnsCcipViaProxyOptions = {}

(url, init) => Promise<Response>