Skip to content

mcp_bankless_get_abi tool failing with deprecated V1 endpoint error #12

Description

@actus-wirtenberger

Issue Description

The mcp_bankless_get_abi tool is currently failing when attempting to fetch contract ABIs from Ethereum mainnet.

Steps to Reproduce

  1. Call mcp_bankless_get_abi with the following parameters:
    • network: ethereum
    • contract: 0xE592427A0AEce92De3Edee1F18E0157C05861564

Expected Behavior

The tool should return the ABI for the specified contract.

Actual Behavior

The tool returns an error response:

{
  "status": "0",
  "message": "NOTOK",
  "result": "You are using a deprecated V1 endpoint, switch to Etherscan API V2 using https://docs.etherscan.io/v2-migration",
  "isSuccess": false
}

Root Cause

The tool appears to be using Etherscan's deprecated V1 API endpoint. Etherscan is requiring migration to their V2 API.

Suggested Fix

Update the mcp_bankless_get_abi implementation to use Etherscan API V2 endpoints as documented at: https://docs.etherscan.io/v2-migration

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