home · Posts · Archive · Tags

初探ipfs

下載

brew install ipfs
ipfs init

import { create } from 'ipfs-http-client' const ipfs = create(new URL('http://127.0.0.1:5001')) const { cid } = await ipfs.add('Hello world!') //CID(QmQzCQn4puG4qu8PVysxZmscmQ5vT1ZXpqo7f58Uh9QfyY)

更新

https://github.com/ipfs-examples/helia-examples/tree/main/examples/helia-101

Ref

👈Go Back

@alanhc