1.0.2 • Published 3 years ago
immutableth v1.0.2
ImmutablETH
This package is built as a joke and is not intended for real-world use! Depend on it for your own risk!
ImmutablETH stores your data in the ETH rinkeby blockchain.
import ImmutablETH from 'ImmutablETH'
const storage = ImmutablETH()
const pony = storage.getItem('myFavoritePony') // Roland
pony.then(console.log)
const order = { item: 'coffee', amount: 1, price: 100, total: 100 }
storage.setItem(`order-${Date.now()}`, order)
.then(() => console.log('saved!'))
.catch(() => console.log('error'))
// saved!