graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

etherscan requests failing

Open saihaj opened this issue 1 year ago • 2 comments

Looks like etherscan made a change where it requires API keys so now all the requests for graph init are failing

saihaj avatar Jul 29 '24 18:07 saihaj

one way is we do what is being suggested https://github.com/graphprotocol/graph-tooling/issues/1001

saihaj avatar Jul 29 '24 18:07 saihaj

we can also create a Ethercan compat Cloudflare worker. So the API is similar to how Etherscan works but under the hood we can fetch from various datasources. Since the ABIs for a contract address are immutable we can just cache them forever and just serve the content from CDN in almost all the cases

saihaj avatar Jul 29 '24 19:07 saihaj

We could use the BlockScout smart contract API. Blockscout is in a contract verification alliance with Sourcify that was mentioned in #1001. API docs are here: https://eth.blockscout.com/api-docs. Relevant one is the /smart-contract/{address-hash} endpoint

craigtutterow avatar Oct 02 '24 15:10 craigtutterow

added a workaround for this in #1736 which proxies requests for now until we have a better and ideally decentralised solution

fschoell avatar Oct 03 '24 10:10 fschoell