Home

Awesome

Graph NFT Marketplace FCC

This repo has been updated to work with Sepolia over Goerli.

Quickstart

  1. Install Subgraph CLI
yarn global add @graphprotocol/graph-cli
  1. Log into the graph UI and create a new Subgraph.

Use Ethereum Sepolia as the network.

  1. Initialize Subgraph
graph init --studio nft-marketplace
  1. Authenticate CLI
graph auth  --studio YOUR_DEPLOY_KEY_HERE
  1. Update your subgraph.yaml
  1. Build graph locally
graph codegen && graph build
  1. Deploy subgraph

Replace VERSION_NUMBER_HERE with a version number like 0.0.1.

graph deploy --studio nft-marketplace -l VERSION_NUMBER_HERE
  1. View your UI

Back in your hardhat project, mint and list an NFT with:

yarn hardhat run scripts/mint-and-list-item.js --network sepolia