Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History

ipfs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Origin IPFS

Convenience methods for getting and setting data in IPFS

Usage

import { get, post } from '@origin/ipfs'

const ipfsHash = await post("https://ipfs.originprotocol.com", { my: "data" })
console.log(ipfsHash)

const retrieved = await get("https://ipfs.originprotocol.com", ipfsHash)
console.log(retrieved)