Hello ipfs-newbie here, I have a question in regards to accessing/distributing the cid of ipld blocks created with:
import Block from "@ipld/block/defaults";
const block = Block.encoder(obj, "dag-cbor");
const data = block.encode();
const cid = await block.cid();
// js-ipfs uses an older CID value type so we must convert to string
await ipfs.block.put(data, { cid: cid.toString() });
how can i resolve the bafy hash cid through a gateway (similar to this question) / how can i use dnslink to map a human readable url to the cid?
Hey @hector, thank you for your answers. Glad this is being worked on.
One more question tho. Let’s say i encode my data as dag-pb can i then use pathing through the gateway like https://dweb.link/v0/dag/get?arg=<cid><uri-encoded-path>?