<div id="app">
<div>
<h1>@helia/verified-fetch Example</h1>
<p id="output" class="output"></p>
</div>
</div>
import { verifiedFetch } from "https://esm.sh/@helia/verified-fetch@1.4.1?bundle-deps"
const output = document.getElementById("output")
const resp = await verifiedFetch("ipfs://baguqeeradnk3742vd3jxhurh22rgmlpcbzxvsy3vc5bzakwiktdeplwer6pa", { session: true })
const obj = await resp.json()
output.innerHTML = JSON.stringify(obj, null, "\t")
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.