Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for integrating IPFS with Ethereum in README.md #6791

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,17 @@ npx prettier --write _data/*/*.json
* [Smart Contract UI](https://xtools-at.github.io/smartcontract-ui)

* Your project - contact us to add it here!

## Integrating IPFS with Ethereum

### Installation and usage

* **Install IPFS**: Follow the instructions on the IPFS installation page.
* **Initialize IPFS**: Run `ipfs init` to initialize the IPFS repository.
* **Start the IPFS daemon**: Run `ipfs daemon` to start the IPFS daemon.
* **Add files to IPFS**: Use the command `ipfs add <file>` to add files to IPFS. This will return a CID (Content Identifier).
* **Store CID on Ethereum**: Use a smart contract to store the CID on the Ethereum blockchain. You can use Solidity to create a contract that stores the CID as a string.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes no sense to me

* **Retrieve files from IPFS**: Use the command `ipfs cat <CID>` to retrieve files from IPFS using the CID.
* **Pinning files on IPFS**: Use the command `ipfs pin add <CID>` to pin files on IPFS, ensuring they are not garbage collected.

For more detailed instructions, refer to the IPFS documentation and the Ethereum documentation.