Deep Dive on Filecoin & IPFS use cases in the Solana ecosystem

Filecoin and IPFS

Use cases

{
"price": 1.0,
"number": 10,
"gatekeeper": null,
"solTreasuryAccount": "<YOUR WALLET ADDRESS>",
"splTokenAccount": null,
"splToken": null,
"goLiveDate": "25 Dec 2021 00:00:00 GMT",
"endSettings": null,
"whitelistMintSettings": null,
"hiddenSettings": null,
"storage": "ipfs",
"ipfsInfuraProjectId": <ADD_PROJECT_ID>,
"ipfsInfuraSecret": <ADD_SECRET_KEY>,

"nftStorageKey": null,
"awsS3Bucket": null,
"noRetainAuthority": false,
"noMutable": false
}
const node = await IPFS.create()const data = 'Hello, Buildooor'const results = node.add(data)for await (const { cid } of results) {
// CID (Content IDentifier) uniquely addresses the data
// and can be used to get it again.
console.log(cid.toString())
}
const node = await IPFS.create()const stream = node.cat('QmQHXWBEM4xGySEcxf7MdaeKb453zAvkF8oRXRVQ9tqN9E')
let data = ''
for await (const chunk of stream) {
// chunks of data are returned as a Buffer, convert it to string
data += chunk.toString()
}
console.log(data)

Awesome Developer Tools

import { Web3Storage } from 'web3.storage';

// Construct with token and endpoint
const client = new Web3Storage({ token: apiToken });

--

--

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