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

Spider tool can't crawl base with basic infura key #825

Open
peersky opened this issue Feb 1, 2024 · 1 comment
Open

Spider tool can't crawl base with basic infura key #825

peersky opened this issue Feb 1, 2024 · 1 comment

Comments

@peersky
Copy link

peersky commented Feb 1, 2024

Running

hardhat spider --network base --deployment usdc

provides error

An unexpected error occurred:

Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)
    at Logger.makeError (/Users/timoz/OZGit/compound-monitoring-v3/address-generator/comet/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/Users/timoz/OZGit/compound-monitoring-v3/address-generator/comet/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at EthersProviderWrapper.<anonymous> (/Users/timoz/OZGit/compound-monitoring-v3/address-generator/comet/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
    at step (/Users/timoz/OZGit/compound-monitoring-v3/address-generator/comet/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/Users/timoz/OZGit/compound-monitoring-v3/address-generator/comet/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/Users/timoz/OZGit/compound-monitoring-v3/address-generator/comet/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  reason: 'could not detect network',
  code: 'NETWORK_ERROR',
  event: 'noNetwork'
}

Obviously because RPC is defined by INFURA_KEY while Infura does not support base yet.

image

It would be more reliable if RPC_URL could be supplied generally, instead of relying on a particular provider.

@peersky peersky changed the title Spider tool can't crawl base Spider tool can't crawl base with basic infura key Feb 1, 2024
@peersky
Copy link
Author

peersky commented Feb 1, 2024

Checked the hardhat code. It's just missing in readme that for base one needs to define QUICKNODE_KEY . Using generic BASE_RPC_URL would still be best for more wider provider scope.

@peersky peersky mentioned this issue Apr 19, 2024
3 tasks
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