The blockchain service API is called by sending an HTTP request to the blockchain service server address. You need to set parameters in the request refer to the API description, and the system responds according to the parameters after the calling. Both the request and the response are encoded in UTF-8 character set.

Request syntax

The APIs of the blockchain service are in the RPC style. You can call the Blockchain service by sending an HTTP POST request.

The request syntax is as follows:
  • Endpoint: The endpoint of BaaS APIs is
  • Action: The operation to be executed, such as calling DescribeFabricOrganization Interface to view the details of one organization.
  • Version: The version of the API. The version of BaaS APIs is 2018-12-21.
  • Parameters: Request parameters that are separated with ampersands (&).

    Request parameters consist of common parameters and API-specific parameters. Common parameters include variables such as the API version and identity authentication information. For more information, see Common parameters.

The following example is calling DescribeFabricOrganization interface to query the blockchain organization that has been created:
Note The following code has been edited to ease readability.