Skip to content

## PR Summary #413

Description

@naserjr23

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 855cad5. Configure here.

Originally posted by @cursor[bot] in #398 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions