All Products
Search
Document Center

Blockchain as a Service:CreateAntChainConsortium

Last Updated:Aug 18, 2023

You can call this operation to create a consortium in Ant Blockchain.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

ConsortiumName

String

Yes

ConsortiumNameExample

The name of the consortium to create. It can only be a free combination of English uppercase and lowercase, numbers, Chinese characters, dashes (-), no spaces or special characters, and a limit of 1 to 100 characters.

Action

String

No

CreateAntChainConsortium

The operation that you want to perform. Set the value to CreateAntChainConsortium.

ConsortiumDescription

String

No

ConsortiumDescriptionExample

The description of the consortium to create. It can be optional, if required, it is limited to 1~255 characters.

RegionId

String

No

cn-hangzhou

The ID of the region where Ant Blockchain is used.

Response parameters

Parameter

Type

Example

Description

RequestId

String

87FAFC6B-E7AE-4626-B7F7-AE0B88E612D5

The ID of the request.

Result

The result of the operation.

ConsortiumId

String

A28nO1ow

The ID of the created consortium.

Examples

Sample requests


http(s)://[Endpoint]/?Action=CreateAntChainConsortium
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateAntChainConsortiumResponse>
    <RequestId>87FAFC6B-E7AE-4626-B7F7-AE0B88E612D5</RequestId>
    <Result>
        <ConsortiumId>A28nO1ow</ConsortiumId>
    </Result>
</CreateAntChainConsortiumResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "87FAFC6B-E7AE-4626-B7F7-AE0B88E612D5",
  "Result" : {
    "ConsortiumId" : "A28nO1ow"
  }
}

Error codes

For a list of error codes, visit the API Error Center.