Giter Site home page Giter Site logo

foundationsubgraph's Introduction

Foundationsubgraph

Subgraph for querying NFTs

Install and Update Script to run NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

To Confirm if installed

command -v nvm

Need to run this in terminal

npm install -g @graphprotocol/graph-cli

Commands for the Subgraph: Subgraph that indexes data off Ethereum mainnet

graph init --product hosted-service <GITHUB_USER>/

yarn install

yarn codegen

Commands for the Subgraph: Deploy your subgraph to the Graph Node

graph auth --product hosted-service <ACCESS_TOKEN>

graph deploy --product hosted-service <GITHUB_USER>/

Select the following to run Subgraph

✔ Protocol · ethereum ✔ Subgraph name · jesse042811/Foundationsubgraph ✔ Directory to create the subgraph in · Foundationsubgraph ✔ Ethereum network · mainnet ✔ Contract address · 0xc9fe4ffc4be41d93a1a7189975cd360504ee361a ✔ Fetching ABI from Etherscan ✔ Contract Name · Token

Next Steps

  1. Run graph auth to authenticate with your deploy key.

  2. Type cd Foundationsubgraph to enter the subgraph.

  3. Run npm run deploy to deploy the subgraph.

foundationsubgraph's People

Contributors

jesse042811 avatar

Forkers

roadblock042899

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.