IPFS websites
Your .gwei name can host a website. Set its contenthash record to an IPFS CID and the
community gateway serves it at:
https://yourname.gwei.domains
Step by step
- Build your site. Any static site works: plain HTML, Astro, Hugo, whatever produces files in a folder.
- Add it to IPFS. Use any pinning service (Pinata, Storacha/web3.storage, Filebase) or
your own IPFS node. You will get a CID like
bafybei…. Prefer CIDv1 (starts withbaf), since it is what gateways and subdomain resolution handle best. - Set the contenthash. Open your name’s manage page → Records → Website, paste
the CID or an
ipfs://…URI, and confirm the transaction. The site encodes it into the standard binary contenthash format for you. - Visit
https://yourname.gwei.domains.
How the gateway works
The gateway is a small resolver that looks up your name’s contenthash directly from the contract and serves the content from IPFS. Your name is the single source of truth: update the contenthash and the site updates; nobody can serve different content under your name without your key.
Remember that the gateway is a convenience, not a dependency. The record onchain is what matters, and any IPFS-aware browser or gateway can resolve your content without it.
Keeping content alive
IPFS content stays retrievable only while at least one node pins it. Your name and its contenthash live onchain forever, but the content behind the CID is your responsibility: keep it pinned with your provider of choice, or on your own node.