Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to subgraph #244

Open
MatthewMih opened this issue Sep 24, 2024 · 0 comments
Open

Can't connect to subgraph #244

MatthewMih opened this issue Sep 24, 2024 · 0 comments

Comments

@MatthewMih
Copy link

I'm using js code from link, with ethers package.

I'm trying to connect to 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3' with

const provider = new ethers.InfuraProvider(null, infura_api_key)
const URL = 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3'

const factoryQuery = `
    {
        factory(id: "0x1F98431c8aD98523631AE4a59f267346ea31F984" ) {
            poolCount
        }
    }
`
const factoryResults = await axios.post(URL, { query: factoryQuery })

As a result I get a connection error (response):

'This endpoint has been removed. If you are the owner of this subgraph you can upgrade it by going here: https://thegraph.com/hosted-service. If you have any questions, reach out to [email protected]. Learn more about why this happening here: https://thegraph.com/docs/en/sunrise/#upgrading-subgraphs-to-the-graph-network'

Please tell me what I'm doing wrong and how to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant