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
Access the DataV console.
On the Workbench page, click Data Preparation > Data Source to access the Data Source page, and then click Create Data Source.
-
From the Type list, select Blockchain as a Service.
-
Enter the necessary information for the Blockchain as a Service data source.

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.

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.

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.

-
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
Access the DataV console.
-
On the Workbench page, hover over the data dashboard you want to edit and click Edit.
ImportantIf 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.
-
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.
-
In the widget configuration panel on the right, select Data Source.

-
In the Set Data Source section, choose Data Source Type as Blockchain as a Service.
-
From the Select Existing Data Source list, choose the configured Blockchain as a Service data source.
-
In the Query Parameter field, input the necessary blockchain parameters for the query.
NoteGiven the variety of blockchain data querying methods, ensure you input the appropriate query parameters based on the data type.
-
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.