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
| Name | Type | Required | Description |
|---|---|---|---|
address | string | yes | Contract address |
chain | string | no | Chain slug or chain ID (default ethereum) |
Example call
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":{}}}'
Response shape
Always returns: chain_id, address, verified, abi
| Field | Type | Description |
|---|---|---|
chain_id | number | Numeric chain ID |
address | string | Contract address |
verified | boolean | Whether contract is verified on Etherscan |
abi | array | null | Parsed ABI array or null if not verified |
Full JSON Schema
{
"type": "object",
"properties": {
"chain_id": {
"type": "number",
"description": "Numeric chain ID"
},
"address": {
"type": "string",
"description": "Contract address"
},
"verified": {
"type": "boolean",
"description": "Whether contract is verified on Etherscan"
},
"abi": {
"type": [
"array",
"null"
],
"description": "Parsed ABI array or null if not verified"
}
},
"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.