Updated on 2023-01-29 GMT+08:00

Overview

BCS provides blockchain middleware to support the development of upper-layer applications. You can easily use standard APIs to quickly access the middleware capabilities. Table 1 lists the APIs.

This chapter describes data plane APIs. For details about management plane APIs, see API Reference.

The endpoint of data plane requests can be obtained from the value of the basic_info->agent_portal_addrs field returned by the management plane API for querying BCS instance details. An example request is https://192.168.0.90:30603/v2/agent/apis/tokens.

Table 1 APIs

API

Description

Middleware

Port

Chaincode Invoking (OBT)

Accessing the blockchain system to invoke and query chaincodes

NOTE:

This function is under OBT.

baas-restapi add-on

Installation steps:

Log in to the BCS console. In the navigation pane, choose Add-on Management. On the Add-on Repository tab page, click Install in the card of the baas-restapi add-on.

32621

Chaincode Management (OBT)

Installing, instantiating, deleting, and querying chaincodes

NOTE:

This function is under OBT.

baas-agent (installed by default)

30603

Distributed Identity (OBT)

Generating, applying for, and signing decentralized identifiers (DIDs) and verifiable credentials (VCs)

NOTE:

This function is under OBT.

baas-restapi add-on

Installation steps:

Log in to the BCS console. In the navigation pane, choose Add-on Management. On the Add-on Repository tab page, click Install in the card of the baas-restapi add-on. On the Install Add-on page, enable DID APIs.

32621

Trusted Data Exchange (OBT)

Trusted data exchange based on the blockchain, involving data release, authorization, sharing, and decryption

NOTE:

This function is under OBT.

baas-restapi add-on

Installation steps:

Log in to the BCS console. In the navigation pane, choose Add-on Management. On the Add-on Repository tab page, click Install in the card of the baas-restapi add-on. On the Install Add-on page, enable trusted data exchange APIs.

32621