<div id="app">
<div>
<h1>@helia/verified-fetch IPNS Example</h1>
<div class="card">
</div>
<p id="output" class="output"></p>
</div>
</div>
import { verifiedFetch } from 'https://esm.sh/@helia/verified-fetch?bundle-deps'
const output = document.getElementById('output')
const resp = await verifiedFetch('ipns://k51qzi5uqu5dhp48cti0590jyvwgxssrii0zdf19pyfsxwoqomqvfg6bg8qj3s')
const blob = await resp.blob()
const imgEl = document.createElement('img')
imgEl.setAttribute('src', URL.createObjectURL(blob))
output.appendChild(imgEl)
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.