## PR Summary

未关闭
#413 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
typescript
领域
api, blockchain

调研方向

该 payload 未提及文件或测试。首先定位 Etherscan 集成,并检查其 endpoint、查询参数、API key 以及解析错误的处理方式。完成的标准是:请求使用带有可配置 chain ID 的 v2 API,缺少 key 时能够安全处理,并且 Etherscan 的错误详情仍然可见。

由索引模型根据 Issue 内容生成。

描述

PR Summary

Medium Risk
Changes how external Etherscan requests are formed (endpoint + required chainid), which can break contract-source fetching if env vars or query formatting are wrong; otherwise the change set is small.

Overview
Updates the Etherscan integration to call the mandatory v2 API endpoint (/v2/api) and includes a configurable chainid (via ETHERSCAN_CHAIN_ID, defaulting to 1) in all requests.

Refactors query construction to ensure all parameters are stringified and adds a safer default for missing APIKEY_ETHERSCAN. Improves etherscanParse failures by surfacing the underlying Etherscan error message/result in the thrown error string.

Written by Cursor Bugbot for commit 855cad55035b816e517c1dd47d39a67348dc8097. Configure here.

Originally posted by @cursor[bot] in https://github.com/duneanalytics/evm.codes/issues/398#issuecomment-3922130888

主要语言
TypeScript
星标
833
派生
197
平均合并
5 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

duneanalytics/evm.codes 的其他 Issue

查看 duneanalytics/evm.codes 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。