> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/products/agentic-wallet/manual/llms.txt
> Use this file to discover all available pages before exploring further.

# Call a view/pure function on an EVM contract

> Proxies an `eth_call` JSON-RPC request to the configured EVM node for the given chain. Suitable for calling view or pure contract functions without creating a transaction. Returns the raw hex result.



## OpenAPI

````yaml post /api/v1/metadata/eth-call
openapi: 3.1.0
info:
  title: Cobo Agentic Wallet Service
  description: Unified wallet engine for human and agent principals
  version: 1.3.0
servers: []
security: []
paths:
  /api/v1/metadata/eth-call:
    post:
      tags:
        - Metadata
      summary: Call a view/pure function on an EVM contract
      description: >-
        Proxies an `eth_call` JSON-RPC request to the configured EVM node for
        the given chain. Suitable for calling view or pure contract functions
        without creating a transaction. Returns the raw hex result.
      operationId: eth_call
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            title: X-Api-Key
            type: string
            nullable: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EthCallRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse_EthCallResult_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedValidationError'
components:
  schemas:
    EthCallRequest:
      properties:
        chain_id:
          type: string
          maxLength: 100
          minLength: 1
          title: Chain Id
          description: Cobo chain ID (e.g. `SETH`, `BASE_ETH`).
        to:
          type: string
          maxLength: 255
          minLength: 1
          title: To
          description: Contract address to call.
        data:
          type: string
          minLength: 1
          title: Data
          description: ABI-encoded calldata as a hex string (with or without `0x` prefix).
        from:
          title: From
          description: Optional msg.sender override.
          type: string
          nullable: true
        block:
          type: string
          title: Block
          description: 'Block tag or hex block number (default: `latest`).'
          default: latest
      type: object
      required:
        - chain_id
        - to
        - data
      title: EthCallRequest
      description: Request body for the eth_call proxy endpoint.
    StandardResponse_EthCallResult_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        result:
          $ref: '#/components/schemas/EthCallResult'
        suggestion:
          type: string
          title: Suggestion
          default: ''
        message:
          type: string
          title: Message
          default: ''
        meta:
          $ref: '#/components/schemas/PaginationMeta'
          nullable: true
      type: object
      required:
        - result
      title: StandardResponse[EthCallResult]
    WrappedValidationError:
      title: WrappedValidationError
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
          default: false
          title: Success
        error:
          type: object
          title: Error
          required:
            - detail
          properties:
            detail:
              type: array
              title: Detail
              items:
                $ref: '#/components/schemas/ValidationError'
    EthCallResult:
      properties:
        result:
          type: string
          title: Result
          description: Raw hex result returned by the EVM node.
      type: object
      required:
        - result
      title: EthCallResult
      description: Result of an eth_call proxy request.
    PaginationMeta:
      properties:
        total:
          title: Total
          type: integer
          nullable: true
        offset:
          title: Offset
          type: integer
          nullable: true
        limit:
          title: Limit
          type: integer
          nullable: true
        has_more:
          title: Has More
          type: boolean
          nullable: true
        after:
          title: After
          type: string
          nullable: true
        before:
          title: Before
          type: string
          nullable: true
      type: object
      title: PaginationMeta
      description: |-
        Pagination metadata for list responses.

        Supports both legacy offset-based and cursor-based pagination.
        Cursor fields (``has_more``, ``after``, ``before``) are populated for
        cursor-paginated endpoints.  Legacy fields (``offset``, ``limit``) are
        populated when the caller uses the deprecated ``offset`` parameter.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````