Create a New Indexer

When creating a new contract view, simply specify the blockchain network and block range, input the contract address or upload the corresponding ABI file, and select the events that you wish to fetch. Once the contract view is created, the ZAN Node Service will automatically processes and cleans the data for you. Afterward, you can swiftly obtain usable data through API batch calls.

  1. Log in to the ZAN Node Service Console, Click on Contract Indexer on the left navigation bar.

  2. Click on New Indexer on the page.

  3. In the pop-up window, configure the following information.

    Configuration ItemsDescription
    NameRequired, customize the name of the contract indexer.
    ChainRequired, currently only supports the Ethereum blockchain.
    NetworkRequired, currently only supports the Ethereum mainnet.
    Contract AddressRequired, after entering the correct contract address, obtain the ABI file corresponding to the contract address by clicking on Upload ABI or Get ABI method.
    • If the contract ABI file has not been published on the blockchain browser, click on Upload ABI to manually upload the ABI file of the contract.
    • If the contract ABI file has been published on the blockchain browser, click on Get ABI and the platform will automatically retrieve the ABI file of the contract.
    EventPlease specify the contract events you want to obtain in the drop-down box.
    Data RangePlease enter the start block and end block in the input field below, after which we will process and clean the data within this specified block range. If the page remains open for an extended period, click on the refresh icon to view the current latest block height.


    πŸ“˜

    Note:

    The index range must not exceed 10 million blocks.

    Synchronize the lastest blockSupports the option to synchronize up to the latest block, with the default setting already synchronized to the newest block:
    • Enabled: Allows the end block to synchronize up to the latest block, automatically updating until the block range reaches 10 million blocks.
    • Disabled: Requires manual setting of the end block, with the maximum allowable block range not exceeding 10 million blocks.
  4. Once the information configuration is accurate, click Confirm to finalize the creation of the contract view.
    After successfully creating the indexer, you will be able to see a list entry for that indexer on this page. Clicking on the indexer will take you to the detail page where you can check its basic information, including the URL and key used to access the view. Refer to the View Details of Indexer section below for specifics.

    πŸ“˜

    Note:

    The first contract view showcased in the list is a system-provided demonstration. Subsequently, you are able to visit its dedicated detail page for reviewing essential information and further engage with it through the Playground environment for an interactive experience.