getSmartContracts
Retrieve smart contracts by querying blockchain networks (Chain IDs: 1, 137, 42161, 10, 8453) and specifying language options like Solidity, Yul, or Viper for Ethereum-based automation.
Instructions
Get smart contract for the query
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chain | Yes | Chain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453 | |
language | No | Optional language to query explorer for | |
q | Yes | Query to get smart contracts for |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"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"
},
"language": {
"description": "Optional language to query explorer for",
"enum": [
"solidity",
"yul",
"viper"
],
"type": "string"
},
"q": {
"description": "Query to get smart contracts for",
"type": "string"
}
},
"required": [
"chain",
"q"
],
"type": "object"
}