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).
Parameters
Section titled “Parameters”proxyUrl
Section titled “proxyUrl”string
Returns
Section titled “Returns”(url, init) => Promise<Response>