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

graphCLI using the wrong endpoint for etherscan ethereum #1608

Closed
dibolero opened this issue Mar 5, 2024 · 1 comment
Closed

graphCLI using the wrong endpoint for etherscan ethereum #1608

dibolero opened this issue Mar 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dibolero
Copy link

dibolero commented Mar 5, 2024

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

After installing the graph using the following command

npm install @graphprotocol/graph-cli
And then running graph init, it gets stuck at the contract verification part because the package seems to be using the wrong URL.

The error I see

Failed to fetch ABI from Etherscan: getaddrinfo ENOTFOUND api-ethereum_network.etherscan.io

It should be using api.etherscan.io instead.

Reproduction

local

Steps to Reproduce the Bug or Issue

  1. Install @graphprotocol/graph-cli
  2. Run graph init --product subgraph-studio --from-contract --network ETHEREUM_NETWORK

Expected behavior

Expecting the self-service steps to find the ABI of the contract on Ethereum.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS]
  • NodeJS: [e.g. 20.10.0]
  • @graphprotocol/ version:10.2.3

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

@dibolero dibolero added the bug Something isn't working label Mar 5, 2024
@saihaj
Copy link
Member

saihaj commented May 8, 2024

ETHEREUM_NETWORK is not a valid option. You can go through the wizard to see all possible options

@saihaj saihaj closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants