All Products
Search
Document Center

DataV:Adding blockchain as a service data source

Last Updated:Mar 10, 2025

This document details how to add Blockchain as a Service data sources in DataV, including instructions for configuring related parameters. Utilizing Alibaba Cloud Blockchain as a Service (BaaS), you can invoke smart contracts via REST API, query blockchain information, and retrieve block and transaction data.

Prerequisites

The Blockchain as a Service data source is prepared for addition.

Limits

Supports only Enterprise Edition or higher.

Adding blockchain as a service data source

  1. Access the DataV console.

  2. On the Workbench page, click Data Preparation > Data Source to access the Data Source page, and then click Create Data Source.

  3. From the Type list, select Blockchain as a Service.

  4. Enter the necessary information for the Blockchain as a Service data source.

    image

    Parameter

    Description

    Custom Data Source Name

    The display name of the blockchain as a service data source, which you can name freely.

    Endpoint

    The REST API address of the blockchain as a service data source. Go to the Blockchain as a Service console, click your Organization User REST API REST API Address to obtain it. REST API地址步骤图

    refreshToken

    The Access Token information for accessing the current blockchain as a service data source, used for identity authentication of the request initiator. Go to the Blockchain as a Service console, click your Organization REST-API, click Generate Token in the sidebar, and obtain it from the generated Token information displayed below. token获取

    network

    The channel name of the blockchain as a service data source. Go to the Blockchain as a Service console, click your Organization > Joined Channels to obtain it. 通道获取步骤

  5. Once the information is filled in, click OK to finalize the data source addition.

    The new data source will then be listed automatically in the data source list.

Using blockchain as a service data source

  1. Access the DataV console.

  2. On the Workbench page, hover over the data dashboard you want to edit and click Edit.

    Important

    If you haven't created a data dashboard on your Workbench page, please see Create a PC Dashboard Using a Template for guidance on creating one.

  3. On the canvas editing page, select a widget from the canvas.

    If your canvas lacks widgets, please add them first. For more information, see Widget Canvas Operations.

  4. In the widget configuration panel on the right, select Data Source.

    image

  5. In the Set Data Source section, choose Data Source Type as Blockchain as a Service.

  6. From the Select Existing Data Source list, choose the configured Blockchain as a Service data source.

  7. In the Query Parameter field, input the necessary blockchain parameters for the query.

    Note

    Given the variety of blockchain data querying methods, ensure you input the appropriate query parameters based on the data type.

  8. Click View Data Return Results to examine the returned data.

What to do next

Once you have the raw data, you can consult datasource config for widget data adaptation.

FAQ

For additional questions, consult the FAQ about datasource config.