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:
http://Endpoint/?Action=xx&Parameters
where,
  • Endpoint: The endpoint of BaaS APIs is baas.aliyuncs.com.
  • Action: The operation to be executed, such as calling DescribeFabricOrganizationInterface 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.
https://baas.aliyuncs.com/?Action=DescribeFabricOrganization
&Format=xml
&Version=2018-12-21
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&Timestamp=2012-06-01T12:00:00Z
…