You can call this operation to query the contract projects in a consortium in Ant Blockchain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
ConsortiumId | String | Yes | DV80nJXq |
The ID of the consortium whose contract projects are to be queried. |
PageNumber | Integer | Yes | 1 |
The number of the page to return. Pages start from page 1. |
PageSize | Integer | Yes | 10 |
The number of entries to return on each page. |
Action | String | No | DescribeAntChainContractProjects |
The operation that you want to perform. Set the value to DescribeAntChainContractProjects. |
RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5EDAC16F-EA3E-4017-B223-D76220F985DF |
The ID of the request. |
Result |
The result of the operation. |
||
ContractProjects |
The information about the contract projects in the consortium. |
||
ConsortiumId | String | DV80nJXq |
The ID of the consortium to which the contract project belongs. |
CreateTime | Long | 1562847564000 |
The time when the contract project was created. |
ProjectDescription | String | description |
The description of the contract project. |
ProjectId | String | 2L9VK68g |
The ID of the contract project. |
ProjectName | String | projectname |
The name of the contract project. |
ProjectVersion | String | 5 |
The version of the contract project. |
UpdateTime | Long | 1563954499000 |
The time when the contract project was updated. |
Pagination |
The information about the pages that list the contract projects in the consortium. |
||
PageNumber | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 10 |
The number of entries returned per page. |
TotalCount | Integer | 1 |
The total number of returned entries. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeAntChainContractProjects
&<Common request parameters>
Sample success responses
JSON
format
{
"successResponse":true,
"requestId":"5EDAC16F-EA3E-4017-B223-D76220F985DF",
"data":{
"Result":{
"Pagination":{
"PageNumber":1,
"TotalCount":1,
"PageSize":10
},
"ContractProjects":[
{
"ProjectDescription":"",
"ProjectName":"projectname",
"ConsortiumId":"DV80nJXq",
"ProjectVersion":"5",
"CreateTime":1562847564000,
"UpdateTime":1563954499000,
"ProjectId":"2L9VK68g"
}
]
},
"RequestId":"5EDAC16F-EA3E-4017-B223-D76220F985DF"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.