You can call this operation to create a contract project in a consortium in Ant Blockchain.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
| ConsortiumId | String | Yes | DV80nJXq | The ID of the consortium in which you want to create the contract project. |
| ProjectName | String | Yes | projectname | The name of the contract project to create. It can only be a free combination of English uppercase and lowercase, numbers, commonly used Chinese characters and dashes (-), no special characters such as decimal points and spaces, and is limited to 1 to 30 characters. |
| ProjectVersion | String | Yes | v1.0.0 | The version of the contract project to create. |
| Action | String | No | CreateAntChainContractProject | The operation that you want to perform. Set the value to CreateAntChainContractProject. |
| ProjectDescription | String | No | project description | The description of the contract project to create. |
| RegionId | String | No | cn-hangzhou | The ID of the region where Ant Blockchain is used. |
Response parameters
| Parameter | Type | Example | Description |
| RequestId | String | 4261A4C3-B8B5-4555-AEBC-944C3EAB23DB | The ID of the request. |
| Result | The result of the operation. | ||
| ConsortiumId | String | DV80nJXq | The ID of the consortium in which the contract project was created. |
| CreateTime | Long | 1563951889044 | The time when the contract project was created. |
| ProjectDescription | String | project description | The description of the created contract project. |
| ProjectId | String | R38DAbop | The ID of the created contract project. |
| ProjectName | String | projectname | The name of the created contract project. |
| ProjectVersion | String | v1.0.0 | The version of the created contract project. |
| UpdateTime | Long | 1563951889140 | The time when the created contract project was updated. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateAntChainContractProject
&<Common request parameters>
Sample success responses
JSON format
{
"successResponse":true,
"requestId":"4261A4C3-B8B5-4555-AEBC-944C3EAB23DB",
"data":{
"Result":{
"ProjectDescription":"project description",
"ProjectName":"projectname",
"ConsortiumId":"DV80nJXq",
"ProjectVersion":"v1.0.0",
"CreateTime":1563951889044,
"UpdateTime":1563951889140,
"ProjectId":"R38DAbop"
},
"RequestId":"4261A4C3-B8B5-4555-AEBC-944C3EAB23DB"
},
"code":"200"
}Error codes
For a list of error codes, visit the API Error Center.