> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockscout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve detailed information about a verified smart contract

> Retrieves detailed information about a specific verified smart contract, including source code, ABI, and deployment details.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/smart-contracts/{address_hash_param}
openapi: 3.0.0
info:
  contact:
    email: info@blockscout.com
  title: Blockscout
  version: 11.0.3
servers:
  - url: http://localhost/api
    variables: {}
security: []
tags:
  - name: blocks
  - name: transactions
  - name: addresses
  - name: internal-transactions
  - name: tokens
  - name: token-transfers
  - name: smart-contracts
  - name: config
  - name: main-page
  - name: search
  - name: stats
  - name: csv-export
  - name: account-abstraction
  - name: withdrawals
  - name: advanced-filters
  - name: arbitrum
  - name: legacy
  - name: optimism
  - name: mud
  - name: celo
  - name: scroll
  - name: zilliqa
paths:
  /v2/smart-contracts/{address_hash_param}:
    get:
      tags:
        - smart-contracts
      summary: Retrieve detailed information about a verified smart contract
      description: >-
        Retrieves detailed information about a specific verified smart contract,
        including source code, ABI, and deployment details.
      operationId: BlockScoutWeb.API.V2.SmartContractController.smart_contract
      parameters:
        - description: Address hash in the path
          in: path
          name: address_hash_param
          required: true
          schema:
            $ref: '#/components/schemas/AddressHash'
        - description: API key for rate limiting or for sensitive endpoints
          in: query
          name: apikey
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Secret key for getting access to restricted resources
          in: query
          name: key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmartContract'
          description: Detailed information about the specified verified smart contract.
      callbacks: {}
components:
  schemas:
    AddressHash:
      nullable: false
      pattern: ^0x([A-Fa-f0-9]{40})$
      title: AddressHash
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.AddressHash
      x-validate: null
    SmartContract:
      additionalProperties: false
      description: Smart contract
      properties:
        constructor_args:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        package_name:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        is_partially_verified:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        is_changed_bytecode:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        abi:
          items:
            type: object
            x-struct: null
            x-validate: null
          nullable: true
          type: array
          x-struct: null
          x-validate: null
        conflicting_implementations:
          items:
            type: object
            x-struct: null
            x-validate: null
          nullable: true
          type: array
          x-struct: null
          x-validate: null
        certified:
          type: boolean
          x-struct: null
          x-validate: null
        additional_sources:
          items:
            properties:
              file_path:
                type: string
                x-struct: null
                x-validate: null
              source_code:
                type: string
                x-struct: null
                x-validate: null
            type: object
            x-struct: null
            x-validate: null
          nullable: true
          type: array
          x-struct: null
          x-validate: null
        is_verified_via_sourcify:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        can_be_visualized_via_sol2uml:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        evm_version:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        language:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        address:
          $ref: '#/components/schemas/Address'
        is_verified_via_eth_bytecode_db:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        coin_balance:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        is_fully_verified:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        license_type:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        is_blueprint:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        name:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        creation_bytecode:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        external_libraries:
          items:
            properties:
              address_hash:
                $ref: '#/components/schemas/AddressHash'
              name:
                nullable: true
                type: string
                x-struct: null
                x-validate: null
            type: object
            x-struct: null
            x-validate: null
          nullable: true
          type: array
          x-struct: null
          x-validate: null
        market_cap:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        proxy_type:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        implementations:
          items:
            properties:
              address_hash:
                $ref: '#/components/schemas/AddressHash'
              name:
                nullable: true
                type: string
                x-struct: null
                x-validate: null
            type: object
            x-struct: null
            x-validate: null
          nullable: true
          type: array
          x-struct: null
          x-validate: null
        verified_at:
          format: date-time
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        is_verified_via_verifier_alliance:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        compiler_version:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        decoded_constructor_args:
          items:
            items:
              anyOf:
                - type: object
                  x-struct: null
                  x-validate: null
                - type: string
                  x-struct: null
                  x-validate: null
              x-struct: null
              x-validate: null
            type: array
            x-struct: null
            x-validate: null
          nullable: true
          type: array
          x-struct: null
          x-validate: null
        sourcify_repo_url:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        optimization_runs:
          nullable: true
          type: integer
          x-struct: null
          x-validate: null
        compiler_settings:
          nullable: true
          type: object
          x-struct: null
          x-validate: null
        verification_metadata:
          nullable: true
          type: object
          x-struct: null
          x-validate: null
        github_repository_metadata:
          nullable: true
          type: object
          x-struct: null
          x-validate: null
        is_verified:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        reputation:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        verified_twin_address_hash:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        optimization_enabled:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        deployed_bytecode:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        source_code:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        transactions_count:
          nullable: true
          type: integer
          x-struct: null
          x-validate: null
        creation_status:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        file_path:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        has_constructor_args:
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
      title: SmartContract
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.SmartContract
      x-validate: null
    Address:
      additionalProperties: false
      description: Address
      properties:
        ens_domain_name:
          description: ENS domain name associated with the address
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        hash:
          $ref: '#/components/schemas/AddressHash'
        implementations:
          description: Implementations linked with the contract
          items:
            $ref: '#/components/schemas/Implementation'
          type: array
          x-struct: null
          x-validate: null
        is_contract:
          description: Has address contract code?
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        is_scam:
          description: Has address scam badge?
          nullable: false
          type: boolean
          x-struct: null
          x-validate: null
        is_verified:
          description: Has address associated source code?
          nullable: true
          type: boolean
          x-struct: null
          x-validate: null
        metadata:
          allOf:
            - $ref: '#/components/schemas/Metadata'
          nullable: true
          x-struct: null
          x-validate: null
        name:
          description: Name associated with the address
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        private_tags:
          description: Private tags associated with the address
          items:
            $ref: '#/components/schemas/Tag'
          type: array
          x-struct: null
          x-validate: null
        proxy_type:
          $ref: '#/components/schemas/ProxyType'
        public_tags:
          description: Public tags associated with the address
          items:
            $ref: '#/components/schemas/Tag'
          type: array
          x-struct: null
          x-validate: null
        reputation:
          description: Reputation of the address
          enum:
            - ok
            - scam
          nullable: false
          type: string
          x-struct: null
          x-validate: null
        watchlist_names:
          description: Watchlist name associated with the address
          items:
            $ref: '#/components/schemas/WatchlistName'
          type: array
          x-struct: null
          x-validate: null
      required:
        - hash
        - is_contract
        - name
        - is_scam
        - reputation
        - proxy_type
        - implementations
        - is_verified
        - ens_domain_name
        - metadata
      title: Address
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address
      x-validate: null
    Implementation:
      additionalProperties: false
      description: Proxy smart contract implementation
      properties:
        address_hash:
          $ref: '#/components/schemas/AddressHash'
        name:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
      required:
        - address_hash
        - name
      title: Implementation
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.Implementation
      x-validate: null
    Metadata:
      additionalProperties: false
      description: Metadata struct
      properties:
        tags:
          description: Metadata tags linked with the address
          items:
            $ref: '#/components/schemas/MetadataTag'
          type: array
          x-struct: null
          x-validate: null
      required:
        - tags
      title: Metadata
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Proxy.Metadata
      x-validate: null
    Tag:
      additionalProperties: false
      description: Address tag struct
      properties:
        address_hash:
          $ref: '#/components/schemas/AddressHash'
        display_name:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
        label:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
      required:
        - address_hash
        - display_name
        - label
      title: Tag
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.Tag
      x-validate: null
    ProxyType:
      enum:
        - eip1167
        - eip1967
        - eip1822
        - eip1967_oz
        - eip1967_beacon
        - master_copy
        - basic_implementation
        - basic_get_implementation
        - comptroller
        - eip2535
        - clone_with_immutable_arguments
        - eip7702
        - resolved_delegate_proxy
        - erc7760
      nullable: true
      title: ProxyType
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.ProxyType
      x-validate: null
    WatchlistName:
      additionalProperties: false
      description: Watchlist name struct
      properties:
        display_name:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
        label:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
      required:
        - display_name
        - label
      title: WatchlistName
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.WatchlistName
      x-validate: null
    MetadataTag:
      additionalProperties: false
      description: Metadata tag struct
      properties:
        meta:
          nullable: false
          type: object
          x-struct: null
          x-validate: null
        name:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
        ordinal:
          nullable: false
          type: integer
          x-struct: null
          x-validate: null
        slug:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
        tagType:
          nullable: false
          type: string
          x-struct: null
          x-validate: null
      required:
        - slug
        - name
        - tagType
        - ordinal
        - meta
      title: MetadataTag
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Proxy.MetadataTag
      x-validate: null

````