{
  "x402Version": 2,
  "id": 72588,
  "slug": "saylorinnovations-api-explorer-contract",
  "resource": "https://saylorinnovations.com/api/explorer/contract",
  "description": "EVM contract bytecode facts on 16 chains: code hash and size, proxy type and implementation, admin, and the list of function selectors in the dispatcher.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "Blockchain the data is for"
      },
      "chain_id": {
        "type": "number",
        "description": "EVM chain id"
      },
      "address": {
        "type": "string",
        "description": "Account or contract address"
      },
      "code_size_bytes": {
        "type": "number",
        "description": "Code size, in bytes"
      },
      "code_hash": {
        "type": "string",
        "description": "Code hash"
      },
      "is_proxy": {
        "type": "boolean",
        "description": "True when the contract is a proxy"
      },
      "proxy_type": {
        "type": [
          "string",
          "null"
        ],
        "description": "Proxy type"
      },
      "implementation": {
        "type": [
          "string",
          "null"
        ],
        "description": "Implementation contract address behind a proxy"
      },
      "proxy_admin": {
        "type": [
          "string",
          "null"
        ],
        "description": "Proxy admin"
      },
      "function_selector_count": {
        "type": "number",
        "description": "Number of function selector"
      },
      "function_selectors": {
        "type": "array",
        "description": "Function selectors"
      },
      "selectors_truncated": {
        "type": "boolean",
        "description": "Selectors truncated"
      },
      "opcode_flags": {
        "type": "object",
        "description": "Opcode flags"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "chain",
      "chain_id",
      "address",
      "code_size_bytes",
      "code_hash",
      "is_proxy",
      "function_selectors",
      "note",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "chain": "ethereum"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "ethereum",
            "chain_id": 1,
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "code_size_bytes": 2186,
            "code_hash": "0xd80d4b7c890cb9d6a4893e6b52bc34b56b25335cb13716e0d1d31383e6b41505",
            "is_proxy": true,
            "proxy_type": "storage-slot proxy (EIP-1967 / ZeppelinOS / EIP-1822)",
            "implementation": "0x43506849D7C04F9138D1A2050bbF3A0c054402dd",
            "proxy_admin": "0x807a96288A1A408dBC13DE2b1d087d10356395d2",
            "function_selector_count": 5,
            "function_selectors": [
              {
                "selector": "0x3659cfe6",
                "name": "upgradeTo(address)"
              },
              {
                "selector": "0x4f1ef286",
                "name": "upgradeToAndCall(address,bytes)"
              },
              {
                "selector": "0x5c60da1b",
                "name": null
              },
              {
                "selector": "0x8f283970",
                "name": null
              },
              {
                "selector": "0xf851a440",
                "name": null
              }
            ],
            "selectors_truncated": false,
            "opcode_flags": {
              "has_selfdestruct_opcode": false,
              "has_delegatecall_opcode": true
            },
            "note": "Static facts from the deployed bytecode via chain RPC. Selectors are extracted from the dispatcher (PUSH4 ... EQ), so a few unusual contracts may show fewer. name is filled only for selectors in a small built-in table; resolve others with the contract/abi route when the contract is verified. opcode_flags come from walking the instruction stream, but code reached only through data or jumps can still be misread, so treat them as hints, not findings. A delegatecall opcode is normal in proxies and libraries.",
            "source": "Chain JSON-RPC (ethereum)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "the contract address"
                  },
                  "chain": {
                    "type": "string",
                    "description": "chain name or id"
                  }
                },
                "required": [
                  "address",
                  "chain"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "Blockchain the data is for"
                  },
                  "chain_id": {
                    "type": "number",
                    "description": "EVM chain id"
                  },
                  "address": {
                    "type": "string",
                    "description": "Account or contract address"
                  },
                  "code_size_bytes": {
                    "type": "number",
                    "description": "Code size, in bytes"
                  },
                  "code_hash": {
                    "type": "string",
                    "description": "Code hash"
                  },
                  "is_proxy": {
                    "type": "boolean",
                    "description": "True when the contract is a proxy"
                  },
                  "proxy_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Proxy type"
                  },
                  "implementation": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Implementation contract address behind a proxy"
                  },
                  "proxy_admin": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Proxy admin"
                  },
                  "function_selector_count": {
                    "type": "number",
                    "description": "Number of function selector"
                  },
                  "function_selectors": {
                    "type": "array",
                    "description": "Function selectors"
                  },
                  "selectors_truncated": {
                    "type": "boolean",
                    "description": "Selectors truncated"
                  },
                  "opcode_flags": {
                    "type": "object",
                    "description": "Opcode flags"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "chain",
                  "chain_id",
                  "address",
                  "code_size_bytes",
                  "code_hash",
                  "is_proxy",
                  "function_selectors",
                  "note",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "contract bytecode analysis",
    "proxy contract detect",
    "function selectors list",
    "contract code hash",
    "eip1967 proxy check"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.964Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string",
          "description": "the contract address"
        },
        "chain": {
          "type": "string",
          "description": "chain name or id"
        }
      },
      "required": [
        "address",
        "chain"
      ]
    },
    "exampleResponse": {
      "chain": "ethereum",
      "chain_id": 1,
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "code_size_bytes": 2186,
      "code_hash": "0xd80d4b7c890cb9d6a4893e6b52bc34b56b25335cb13716e0d1d31383e6b41505",
      "is_proxy": true,
      "proxy_type": "storage-slot proxy (EIP-1967 / ZeppelinOS / EIP-1822)",
      "implementation": "0x43506849D7C04F9138D1A2050bbF3A0c054402dd",
      "proxy_admin": "0x807a96288A1A408dBC13DE2b1d087d10356395d2",
      "function_selector_count": 5,
      "function_selectors": [
        {
          "selector": "0x3659cfe6",
          "name": "upgradeTo(address)"
        },
        {
          "selector": "0x4f1ef286",
          "name": "upgradeToAndCall(address,bytes)"
        },
        {
          "selector": "0x5c60da1b",
          "name": null
        },
        {
          "selector": "0x8f283970",
          "name": null
        },
        {
          "selector": "0xf851a440",
          "name": null
        }
      ],
      "selectors_truncated": false,
      "opcode_flags": {
        "has_selfdestruct_opcode": false,
        "has_delegatecall_opcode": true
      },
      "note": "Static facts from the deployed bytecode via chain RPC. Selectors are extracted from the dispatcher (PUSH4 ... EQ), so a few unusual contracts may show fewer. name is filled only for selectors in a small built-in table; resolve others with the contract/abi route when the contract is verified. opcode_flags come from walking the instruction stream, but code reached only through data or jumps can still be misread, so treat them as hints, not findings. A delegatecall opcode is normal in proxies and libraries.",
      "source": "Chain JSON-RPC (ethereum)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
              "chain": "ethereum"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "ethereum",
              "chain_id": 1,
              "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
              "code_size_bytes": 2186,
              "code_hash": "0xd80d4b7c890cb9d6a4893e6b52bc34b56b25335cb13716e0d1d31383e6b41505",
              "is_proxy": true,
              "proxy_type": "storage-slot proxy (EIP-1967 / ZeppelinOS / EIP-1822)",
              "implementation": "0x43506849D7C04F9138D1A2050bbF3A0c054402dd",
              "proxy_admin": "0x807a96288A1A408dBC13DE2b1d087d10356395d2",
              "function_selector_count": 5,
              "function_selectors": [
                {
                  "selector": "0x3659cfe6",
                  "name": "upgradeTo(address)"
                },
                {
                  "selector": "0x4f1ef286",
                  "name": "upgradeToAndCall(address,bytes)"
                },
                {
                  "selector": "0x5c60da1b",
                  "name": null
                },
                {
                  "selector": "0x8f283970",
                  "name": null
                },
                {
                  "selector": "0xf851a440",
                  "name": null
                }
              ],
              "selectors_truncated": false,
              "opcode_flags": {
                "has_selfdestruct_opcode": false,
                "has_delegatecall_opcode": true
              },
              "note": "Static facts from the deployed bytecode via chain RPC. Selectors are extracted from the dispatcher (PUSH4 ... EQ), so a few unusual contracts may show fewer. name is filled only for selectors in a small built-in table; resolve others with the contract/abi route when the contract is verified. opcode_flags come from walking the instruction stream, but code reached only through data or jumps can still be misread, so treat them as hints, not findings. A delegatecall opcode is normal in proxies and libraries.",
              "source": "Chain JSON-RPC (ethereum)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string",
                      "description": "the contract address"
                    },
                    "chain": {
                      "type": "string",
                      "description": "chain name or id"
                    }
                  },
                  "required": [
                    "address",
                    "chain"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "Blockchain the data is for"
                    },
                    "chain_id": {
                      "type": "number",
                      "description": "EVM chain id"
                    },
                    "address": {
                      "type": "string",
                      "description": "Account or contract address"
                    },
                    "code_size_bytes": {
                      "type": "number",
                      "description": "Code size, in bytes"
                    },
                    "code_hash": {
                      "type": "string",
                      "description": "Code hash"
                    },
                    "is_proxy": {
                      "type": "boolean",
                      "description": "True when the contract is a proxy"
                    },
                    "proxy_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Proxy type"
                    },
                    "implementation": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Implementation contract address behind a proxy"
                    },
                    "proxy_admin": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Proxy admin"
                    },
                    "function_selector_count": {
                      "type": "number",
                      "description": "Number of function selector"
                    },
                    "function_selectors": {
                      "type": "array",
                      "description": "Function selectors"
                    },
                    "selectors_truncated": {
                      "type": "boolean",
                      "description": "Selectors truncated"
                    },
                    "opcode_flags": {
                      "type": "object",
                      "description": "Opcode flags"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "chain",
                    "chain_id",
                    "address",
                    "code_size_bytes",
                    "code_hash",
                    "is_proxy",
                    "function_selectors",
                    "note",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/explorer/contract?chain=ethereum&address=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "chain": "string",
    "chain_id": 0,
    "address": "string",
    "code_size_bytes": 0,
    "code_hash": "string",
    "is_proxy": true,
    "proxy_type": "string",
    "implementation": "string",
    "proxy_admin": "string",
    "function_selector_count": 0,
    "function_selectors": [
      "value"
    ],
    "selectors_truncated": true,
    "opcode_flags": {},
    "note": "string",
    "source": "string"
  }
}