getSmartContract
Retrieve smart contract source code, ABI, and metadata for Ethereum-based networks. Specify chain ID and contract address to access essential contract details efficiently.
Instructions
Retrieve the source code, ABI and metadata a contract.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes | ||
chain | Yes | Chain 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"
}