How to painlessly use decentralized IPFS storage network?
- Install Dependencies
yarn
- Run with
ts-node
ts-node xxx.ts
OR use npx
if you do not have ts-node
in your env:
npx ts-node xxx.ts
.
├── README.md
├── package.json
├── src
│ ├── eth.ts #how to interact w/Crust from ETH-ish blockchains:Moonbeam/Heco/Eth/Polygon etc.
│ ├── live.ts #used for live coding on workshops ...
│ ├── near.ts #how to interact w/Crust from NEAR
│ ├── substrate.ts #how to interact w/Crust from Substrate based blockchains
│ ├── pin.ts #helper function to PIN a CID to Crust Network
│ ├── upload.ts #helper function to upload a file to an IPFS node
│ └── util
│ ├── generate-file.ts #a useful script to generate a file of randomBytes
│ └── generate-seed.ts #a useful script to generate a brand new blockchain seed phrase
├── tree.txt
└── yarn.lock