You can call this operation to copy a contract project in a consortium in Ant Blockchain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
ProjectId | String | Yes | 2L9VK68g |
The ID of the contract project to copy. |
ProjectName | String | Yes | copyproject |
The name of the contract project to copy. |
ProjectVersion | String | Yes | v1.0.1 |
The version of the contract project to copy. |
Action | String | No | CopyAntChainContractProject |
The operation that you want to perform. Set the value to CopyAntChainContractProject. |
ProjectDescription | String | No | copy project description |
The description of the contract project to copy. |
RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 45D67F6F-C723-4AD8-8462-F94EE5FF22E6 |
The ID of the request. |
Result |
The result of the operation. |
||
ConsortiumId | String | DV80nJXq |
The ID of the consortium to which the new contract project belongs. |
CreateTime | Long | 1563953475248 |
The time when the new contract project was created. |
ProjectDescription | String | copy project description |
The description of the new contract project. |
ProjectId | String | R6XMEdXe |
The ID of the new contract project. |
ProjectName | String | copyproject |
The name of the new contract project. |
ProjectVersion | String | v1.0.1 |
The version of the new contract project. |
UpdateTime | Long | 1563953475248 |
The time when the new contract project was updated. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CopyAntChainContractProject
&<Common request parameters>
Sample success responses
JSON
format
{
"successResponse":true,
"requestId":"45D67F6F-C723-4AD8-8462-F94EE5FF22E6",
"data":{
"Result":{
"ProjectDescription":"copy project description",
"ProjectName":"copyproject",
"ConsortiumId":"DV80nJXq",
"ProjectVersion":"v1.0.1",
"CreateTime":1563953475248,
"UpdateTime":1563953475248,
"ProjectId":"R6XMEdXe"
},
"RequestId":"45D67F6F-C723-4AD8-8462-F94EE5FF22E6"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.