All Products
Search
Document Center

Blockchain as a Service:Call APIs

Last Updated:Mar 31, 2026

Blockchain as a Service (BaaS) exposes its functionality through an HTTP-based API. Send an HTTP POST request to the BaaS endpoint with the required parameters, and the service returns a response. Both requests and responses use UTF-8 encoding.

Request syntax

BaaS APIs use RPC style. Each request follows this pattern:

http://Endpoint/?Action=xx&Parameters
ComponentDescription
EndpointThe BaaS API endpoint: baas.aliyuncs.com
ActionThe operation to run, such as DescribeFabricOrganization
VersionThe API version: 2018-12-21
ParametersRequest parameters separated by ampersands (&)

Parameters fall into two categories:

  • Common parameters — included in every request; cover the API version and identity authentication. See Common parameters.

  • API-specific parameters — vary by operation; defined in each API's reference page.

Example request

The following request calls DescribeFabricOrganization to query a blockchain organization.

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
…

The common parameters in this example are described below.

ParameterExample valueDescription
FormatxmlResponse format
Version2018-12-21API version
Signaturexxxx%xxxx%3DRequest signature
SignatureMethodHMAC-SHA1Signature algorithm
SignatureNonce15215528852396Unique random number
SignatureVersion1.0Signature algorithm version
AccessKeyIdkey-testYour AccessKey ID
Timestamp2012-06-01T12:00:00ZRequest timestamp

What's next