Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

Web3 Gateways: IPFS, Ethereum, DNSLink and HTTP Access

How HTTP Web3 gateways expose IPFS and Ethereum via DNSLink, JSON-RPC, caching, limits, and gateway lifecycle.

This page summarises Cloudflare Web3 documentation on Web3 gateways: paid add-on hostnames that let applications use standard HTTP to reach IPFS (read-only) and Ethereum (read and write) without running your own nodes. Traffic is routed through Cloudflare DNS, Workers, and cached edge responses where possible.

Cloudflare Web3 gateways let your application interact with decentralized networks (IPFS and Ethereum) using standard HTTP requests. Instead of running your own IPFS or Ethereum node, you point your domain at Cloudflare and the gateway handles network communication on your behalf.

— Cloudflare, About

Web3 gateways: when you need HTTP instead of a node

Section titled “Web3 gateways: when you need HTTP instead of a node”

You typically look this up when you want a custom hostname (for example gateway.example.com) that serves IPFS sites or answers Ethereum JSON-RPC calls, but you do not want to operate IPFS or go-ethereum infrastructure yourself. Cloudflare maintains gateway nodes, proxies the hostname, issues SSL/TLS, and applies its anycast network for security and caching.

Gateway target HTTP use Network writes
IPFS DNSLink (restricted) Serve one site via domain + DNSLink Not supported (read-only)
IPFS Universal Path Any /ipfs/ or /ipns/ path on that hostname Not supported (read-only)
Ethereum JSON-RPC over HTTPS Yes, via eth_sendRawTransaction (signed txs)

Web3 gateways are a paid add-on; you subscribe before creating hostnames. See limits for plan caps.

How read and write requests work through a gateway

Section titled “How read and write requests work through a gateway”

Read operations: cache-first IPFS and Ethereum queries

Section titled “Read operations: cache-first IPFS and Ethereum queries”

For reads (IPFS fetches or Ethereum balance/state queries), the gateway checks whether the response is already cached at a nearby Cloudflare data center. Cached content returns immediately over HTTP without contacting the underlying network; otherwise Cloudflare fetches from its own IPFS or Ethereum nodes, caches the result, and returns it over HTTP.

When your application sends a read request (for example, fetching a file from IPFS or querying an Ethereum account balance), the gateway checks whether the response is already cached at a nearby Cloudflare data center.

— Cloudflare, About

Write operations: Ethereum only (EVM chains)

Section titled “Write operations: Ethereum only (EVM chains)”

Only available for gateways to EVM-based chains, such as Ethereum.

— Cloudflare, About

Write operations submit transactions or contract deployments. The gateway forwards the request to Cloudflare’s Ethereum nodes, which place the transaction in the mempool; validators include it in a block after consensus. The gateway returns a transaction ID for tracking.

Cloudflare’s IPFS Gateway is currently limited to read-only access.

— Cloudflare, Use IPFS gateway

Section titled “IPFS gateway types: DNSLink restricted vs Universal Path”
Section titled “DNSLink gateways: one site on your hostname”

A gateway with a DNSLink record is a restricted gateway: it serves only content tied to a specific CID or IPNS name, not the whole IPFS network.

When you set up a gateway with a DNSLink record, that gateway is restricted to a particular piece of content — either a specific Content Identifier (CID) or an Interplanetary Name Service (IPNS) hostname. This is called a restricted gateway.

— Cloudflare, DNSLink gateways

DNSLink maps a human-readable domain to a CID using a DNS TXT record (for example _dnslink.www.example.com with dnslink=/ipns/...). When you publish a new site version, you update the TXT record to the new CID; the URL stays the same.

When you create an IPFS gateway in Cloudflare, you can set DNSLink at creation time. The default path is /ipns/onboarding.ipfs.cloudflare.com unless you point at your own pinned content—see DNSLink gateways and Gateway DNS records.

Universal Path gateway: any CID or IPNS on the hostname

Section titled “Universal Path gateway: any CID or IPNS on the hostname”

A Universal Path gateway has no DNSLink and allows any IPFS content by path:

A Universal Path gateway is a gateway without a DNSLink record. It allows users to access any content hosted on the IPFS network by specifying a CID or IPNS path in the URL.

— Cloudflare, Universal Path gateway

Universal Path is Enterprise-only for gateway type (limits). Because it is open by default, use the gateway blocklist to block specific CIDs or /ipfs/ / /ipns/ paths.

IPFS URLs: hostname, /ipfs/ and /ipns/ paths

Section titled “IPFS URLs: hostname, /ipfs/ and /ipns/ paths”

Every IPFS gateway request needs the gateway hostname (from gateway creation) and a request path (Use IPFS gateway).

  • /ipfs/<CID> — immutable content; the response never changes for that CID.
  • /ipns/<DOMAIN> — resolves DNSLink to a CID; content can change when DNS updates.

Sites on IPFS should use relative links when possible so they work on custom domains, gateways, and immutable /ipfs/ URLs alike—Using IPFS with your website.

Content addressing: files on IPFS are identified by CID (content hash). Directories get their own CID; a static site can be one directory CID with paths like /index.html—see Interplanetary File System (IPFS).

CI/CD can publish by updating DNSLink after ipfs add (tools such as ipfs-deploy, dnslink-cloudflare, Fission)—Automated deployments.

Ethereum gateway: JSON-RPC, networks, and signing

Section titled “Ethereum gateway: JSON-RPC, networks, and signing”

Cloudflare’s Ethereum Gateway exposes the official Ethereum JSON-RPC API over HTTPS on your hostname, without local node software.

Supported networks (Supported networks):

Network Path suffix on gateway URL
Ethereum Mainnet /v1/mainnet
Sepolia Testnet /v1/sepolia

Unsupported methods return 403 (Supported API methods). Notable unsupported methods include eth_sendTransaction, eth_accounts, eth_sign, and log filters (eth_newFilter, etc.)—clients must sign transactions locally and use eth_sendRawTransaction.

Reads use standard methods (eth_getBalance, eth_call, eth_getBlockByNumber, …). Cloudflare’s nodes include full and archive nodes; archive behaviour applies to certain state methods when the block is more than 128 blocks behind latest or earliest is used—Node types.

Writes require a wallet, gas (ETH), and a signed raw transaction hex string sent via eth_sendRawTransaction—Use Ethereum gateway. Transactions are public and cannot be undone once included; contract security is your responsibility (Cloudflare’s Kill Switches article discusses smart-contract risk in that context).

Background on consensus, gas, and JSON-RPC reads/writes: Ethereum network.

  1. In the Cloudflare dashboard, open Web3 and Subscribe to Web3 Gateways if you have not already.
  2. Click Create Gateway. Enter a Hostname (subdomain of your zone), Description, Gateway Type (IPFS DNSLink, IPFS Universal Path, or Ethereum), and DNSLink when using IPFS DNSLink.
  3. Click Deploy. Cloudflare creates DNS records, proxies traffic, and issues a certificate—Get started and Manage gateways.

API creation: POST to https://api.cloudflare.com/client/v4/zones/{zone_id}/web3/hostnames with name, target (ethereum, ipfs, ipfs_universal_path), and optional dnslink—full example in Get started.

After creation you may edit Description and, for IPFS, DNSLink only; other changes require delete and recreate—Manage gateways.

If status is Error, use Refresh to recreate DNS records (Gateway status).

Legacy beta hostnames pointing at cloudflare-eth.com or cloudflare-ipfs.com should migrate to new Web3 custom gateways—Legacy gateway migration.

Creating a gateway auto-adds DNS you cannot edit in the normal DNS UI; change the gateway configuration instead—Gateway DNS records:

Gateway type Records
Ethereum Proxied CNAME → ethereum.cloudflare.com
IPFS Proxied CNAME → ipfs.cloudflare.com + TXT DNSLink value

Pre-existing records on the chosen hostname are overwritten when the gateway is created.

Status Meaning
Active DNS records exist and work
Pending Becoming active
Deleting Removal in progress
Error DNS misconfigured or missing—try refresh

Both gateway families are available on Free through Enterprise with usage-based billing beyond included allowances (Limits):

Free / Pro / Business Enterprise
Total gateways 15 Unlimited
IPFS included transfer 50 GB 100 GB
IPFS Universal Path type No Yes
Ethereum included requests 500,000 HTTP requests 1,000,000
IPFS file size limit None listed None listed

Enterprise customers may preview Web3 as a non-contract service with full access and waived metered fees per Subscribe to gateways.

  • Missing DNSLink on a restricted IPFS gateway → no link named "ipfs" errors (Troubleshooting).
  • Expecting IPFS writes through the gateway—upload and pin elsewhere; the gateway only reads.
  • Using unsupported RPC methods (unsigned send, filters)—check Supported API methods.
  • Stale or unavailable IPFS content—unpinned content, offline providers, NAT on home nodes, or nodes not pinning/provideing; Cloudflare documents generic IPFS causes in Troubleshooting. For gateway incidents, check Cloudflare’s status dashboard (linked from that page) and the IPFS Discussion Forum.

Operators running their own high-traffic IPFS node can add Cloudflare peering peers in IPFS config—Peering.

Further tasks: How to (restrict access, customise settings, use each gateway type).

  1. In the Cloudflare dashboard Web3 page, confirm the gateway shows Active per Gateway status.
  2. For IPFS DNSLink, resolve _dnslink.<your-host> TXT and open https://<gateway-hostname>/ or a known /ipfs/<CID> path—Use IPFS gateway.
  3. For Ethereum, POST a supported read such as eth_chainId to https://<gateway-hostname>/v1/mainnet and confirm JSON-RPC success—Supported API methods.
  4. If status is Error, run Refresh on the gateway—Manage gateways.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about so it can be corrected or explained.