---
title: "zan_getViewFieldInfo"
method: POST
path: "/{viewId}"
---

# zan_getViewFieldInfo

`POST /{viewId}`

## Request

- Base URL: `https://api.zan.top/view/v1/eth/mainnet/indexer`
- URL: `https://api.zan.top/view/v1/eth/mainnet/indexer/{viewId}`
- Auth: none declared

Returns the schema of a deployed indexer.

## Path parameters

- `viewId` string, required: For higher throughput, please <span class="custom-style"><a href="../docs/contract-indexer#create-a-new-contract-indexer" target="_blank">create a new contract indexer</a></span>.

## Request body

- object
  - `id` integer
  - `jsonrpc` string
  - `method` string
  - `params` string[]: View_id - String - After a contract view is successfully created, a unique identifier is returned, which can be used for subsequent calls and identification of this specific view.

## Response `200`

Returns the number of transactions in the block with the given block hash.

- object
  - `id` integer
  - `jsonrpc` string
  - `result` object[]
    - `eventSignature` string: Event signature of one contract, like topic0
    - `fieldInfoDTOList` object[]
      - `fieldName` string: Field name in indexer table
      - `supportedOperatorList` string[]
      - `type` string: Filed type in indexer table

---

[API](https://skmtc.dev/zan/apis/zan-getviewfieldinfo.md) - [All operations](https://skmtc.dev/zan/apis/zan-getviewfieldinfo/llms.txt) - [OpenAPI document](https://skmtc.dev/zan/apis/zan-getviewfieldinfo/revisions/ccc058cae081?raw)
