What is web3.storage and how to use web3.storage

Web3.Storage Forum dApp example

Install / Run

Install dependencies: npm install
npm run dev

Setting up MetaMask

Getting play money

App overview

Items

/**
* @notice Represents a single forum post or comment.
*/
struct Item {
/// @notice what kind of item (post or comment)
ItemKind kind;
/// @notice Unique item id, assigned at creation time.
uint256 id;
/// @notice Id of parent item. Posts have parentId == 0.
uint256 parentId;
/// @notice address of author.
address author;
/// @notice block number when item was submitted
uint256 createdAtBlock;
/// @notice ids of all child items, with oldest items at front.
uint256[] childIds;
/// @notice IPFS CID of item content.
string contentCID;
}

Voting

--

--

--

I am blockchain Enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

NFT Interoperability: Marketplace Wars and The Dilemma of The Creator

Stop losing millions of $$$ — Fix ICO Smart contract Vulnerabilities

PlateauFinance smart contract audit report

FARSITE DeFi Ethereum 2 Game

sexyLoot 💖💰

EpiK Integrating Chainlink Price Feed to Provide DeFi Services for Decentralized Knowledge Graph…

Week #77 Notice of Mushrooms

Dokia Capital joins Mission Control — The Graph’s incentivized network

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Piyush Maheshwari

Piyush Maheshwari

I am blockchain Enthusiast

More from Medium

“Alternating Current”: a story by Max Reif, from TOWARD AN INTERIOR SUN —  a commemoration of…

Composite photos: left side, Wikimedia Commons photo of the apparatus for giving ECT ie electroconvulsive therapy treatments; right side, a painting by the author of a naked man walking “Into Light”

The Weary Blues

Part 2.5 A Tale of Two Journals: Keeping Score

At this age…