Skip to content

NowAndNawoo/ethfs-examples

Repository files navigation

EthFS Examples

Examples of simple fully on-chain image NFT using EthFS.

Example1

OpenSea
Etherscan

earth.jpg was uploaded from goerli.ethfs.xyz. It's Base64 encoded.

Example2 (Moon)

OpenSea
Etherscan

moon.jpg was uploaded using the script below. It's not Base64 encoded.

Setup

git clone https://github.com/NowAndNawoo/ethfs-examples.git
cd ethfs-examples
npm i
cp .env.sample .env

Scripts

  • npx hardhat run scripts/uploadFile.ts --network goerli
    • Upload moon.jpg to EthFS
  • npx hardhat run scripts/Example1/deploy.ts --network goerli
    • Deploy Example1 contract
  • npx hardhat run scripts/Example2/deploy.ts --network goerli
    • Deploy Example2 contract

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published