Giter VIP home page Giter VIP logo

Comments (3)

ChefKai avatar ChefKai commented on July 2, 2024 1

Hello, this is because you are trying to fetch a Token entity while your address is referring to a Pair / Pancake LP's. The following query is working, please have a look at it:

GraphQL query:

{
  pair (id: "0x8c83e7aef5116be215223d3688a2f5dc4c7f241b") {
    id
    name
  }
  token (id: "0x765b85839717ebfc84378b83381a4814897a0506") {
    id
    name
  }
}

Response:

{
  "data": {
    "pair": {
      "id": "0x8c83e7aef5116be215223d3688a2f5dc4c7f241b",
      "name": "REI-BUSD"
    },
    "token": {
      "id": "0x765b85839717ebfc84378b83381a4814897a0506",
      "name": "Zerogoki Token"
    }
  }
}

Note: Please keep in mind that all addresses are in lowercase.

from pancake-subgraph.

yyxx2z avatar yyxx2z commented on July 2, 2024

Thx a lot

from pancake-subgraph.

yyxx2z avatar yyxx2z commented on July 2, 2024

Sorry to bother you again.
I could not use this subgraph to get Wault contract data.
GraphQL:

{
  pair(id: "0x4b31d95654300cbe8ce3fe2b2ec5c6d2929ae7a6") {
    id
    name
  }
}

Response:

{
  "data": {
    "pair": null
  }
}

I am try to find one subgraph on thegraph to search from whole BSC. I only find this subgraph but your guys archived the github repository:

https://github.com/pancakeswap/pancake-v2-subgraph

So could you tell me how to get Wault contract data by thegraph?
It will very helpful to me. Thanks.

from pancake-subgraph.

Related Issues (20)

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.