agentek-eth

by NaniDAO
Verified

getSmartContract

Retrieve smart contract source code, ABI, and metadata by providing the contract address and chain ID for blockchain networks like Ethereum, Polygon, Optimism, and more.

Instructions

Retrieve the source code, ABI and metadata a contract.

Input Schema

NameRequiredDescriptionDefault
addressYes
chainYesChain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "address": { "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, "chain": { "anyOf": [ { "enum": [ "1", "137", "42161", "10", "8453" ], "type": "string" }, { "allOf": [ { "type": "number" }, { "enum": [ "1", "137", "42161", "10", "8453" ], "type": "string" } ] } ], "description": "Chain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453" } }, "required": [ "chain", "address" ], "type": "object" }

You must be authenticated.

Other Tools from agentek-eth

Related Tools

ID: embaq2gcce