Skip to content

Em3ODMe/chainsafe-technical-test

Repository files navigation

eth-ipfs-storage

App for storing IPFS content in Ethereum blockchain.

Configuration

node enviroment variables

Path: /.env

ETH_NETWORK= ethereum network provider Infura or Ganache

Ethereum solidity contract source code

Path: /contracts/contract.sol

Ethereum contract address

example: ropsten network (0x23438910af7a62b2b9257f9fc222d590ceb95eb9)

Installation

Dependencies

npm install

App installation (Linux)

npm run install:all

Usage

Help info

eth-ipfs-storage --help

add content and set cid to Ethereum contract

eth-ipfs-storage set --file ./example/chainsafe.json --privateKey <ethereum account private key>

get cid from Ethereum contract

eth-ipfs-storage get

Credits

Thanks to you for this challenge!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published