get_contract_abi

Pack: etherscan · Endpoint: https://gateway.pipeworx.io/etherscan/mcp

Verified contract ABI as JSON (if the contract is verified on Etherscan).

Parameters

NameTypeRequiredDescription
addressstringyesContract address
chainstringnoChain slug or chain ID (default ethereum)

Example call

Arguments

{
  "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}

curl

curl -X POST https://gateway.pipeworx.io/etherscan/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_contract_abi","arguments":{"address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_contract_abi', {
  "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
});

More examples

{
  "address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
  "chain": "polygon"
}

Response shape

Always returns: chain_id, address, verified, abi

FieldTypeDescription
chain_idnumberNumeric chain ID
addressstringThe queried contract address
verifiedbooleanWhether contract is verified on Etherscan
abiunknownParsed ABI array or string, null if unverified
Full JSON Schema
{
  "type": "object",
  "properties": {
    "chain_id": {
      "type": "number",
      "description": "Numeric chain ID"
    },
    "address": {
      "type": "string",
      "description": "The queried contract address"
    },
    "verified": {
      "type": "boolean",
      "description": "Whether contract is verified on Etherscan"
    },
    "abi": {
      "description": "Parsed ABI array or string, null if unverified"
    }
  },
  "required": [
    "chain_id",
    "address",
    "verified",
    "abi"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "etherscan": {
      "url": "https://gateway.pipeworx.io/etherscan/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 27, 2026