Examples of simple fully on-chain image NFT using EthFS.
earth.jpg
was uploaded from goerli.ethfs.xyz.
It's Base64 encoded.
moon.jpg
was uploaded using the script below. It's not Base64 encoded.
git clone https://github.com/NowAndNawoo/ethfs-examples.git
cd ethfs-examples
npm i
cp .env.sample .env
npx hardhat run scripts/uploadFile.ts --network goerli
- Upload
moon.jpg
to EthFS
- Upload
npx hardhat run scripts/Example1/deploy.ts --network goerli
- Deploy Example1 contract
npx hardhat run scripts/Example2/deploy.ts --network goerli
- Deploy Example2 contract
- EthFS
- CC0 Photos