文档

DescribeFabricConsortiumChaincodes

更新时间:

调用DescribeFabricConsortiumChaincodes获取联盟的链码列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称

类型

是否必选

示例值

描述

Action String DescribeFabricConsortiumChaincodes

系统规定参数。取值:DescribeFabricConsortiumChaincodes

ConsortiumId String consortium-lianmenyumingyi-hc5d1bwlulg7

联盟ID

Location String cn-hangzhou

位置

返回数据

名称

类型

示例值

描述

RequestId String 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3

请求ID

Success Boolean true

是否成功

ErrorCode Integer 200

错误码

Result Array of ChaincodeVO

联盟的链码列表

Type Integer 1

类型

EndorsePolicy String OR ('aaaaaa1MSP.peer')

背书策略

State String Instantiatable

状态

CreateTime String 1544411108000

创建时间

ChaincodeId String code-sacc-1pr09q7jmo0np

链码ID

ProviderName String name

链码上传者名称

Message String ok

消息

ChaincodeName String sacc

链码名称

Install Boolean true

是否安装

Input String input

链码输入

ProviderId String peers-aaaaaa2-1eqnj5o5w9dt3

链码上传者ID

DeployTime String 1544411108000

部署时间

ChaincodeVersion String 1.0

链码版本

ConsortiumId String consortium-lianmenyumingyi-hc5d1bwlulg7

联盟ID

ChannelName String cname

通道名

ChannelId String chan-channelx-1l1hmckuuisxo

通道ID

Path String go-sdk-demo/chaincode/src

链码路径

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeFabricConsortiumChaincodes
&ConsortiumId=consortium-lianmenyumingyi-hc5d1bwlulg7
&Location=cn-hangzhou
&公共请求参数

正常返回示例

XML格式

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

<DescribeFabricConsortiumChaincodesResponse>
    <RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
    <Success>true</Success>
    <ErrorCode>200</ErrorCode>
    <Result>
        <Type>1</Type>
        <EndorsePolicy>OR ('aaaaaa1MSP.peer')</EndorsePolicy>
        <State>Instantiatable</State>
        <CreateTime>1544411108000</CreateTime>
        <ChaincodeId>code-sacc-1pr09q7jmo0np</ChaincodeId>
        <ProviderName>name</ProviderName>
        <Message>ok</Message>
        <ChaincodeName>sacc</ChaincodeName>
        <Install>true</Install>
        <Input>input</Input>
        <ProviderId>peers-aaaaaa2-1eqnj5o5w9dt3</ProviderId>
        <DeployTime>1544411108000</DeployTime>
        <ChaincodeVersion>1.0</ChaincodeVersion>
        <ConsortiumId>consortium-lianmenyumingyi-hc5d1bwlulg7</ConsortiumId>
        <ChannelName>cname</ChannelName>
        <ChannelId>chan-channelx-1l1hmckuuisxo</ChannelId>
        <Path>go-sdk-demo/chaincode/src</Path>
    </Result>
</DescribeFabricConsortiumChaincodesResponse>

JSON格式

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

{
  "RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
  "Success" : true,
  "ErrorCode" : 200,
  "Result" : [ {
    "Type" : 1,
    "EndorsePolicy" : "OR ('aaaaaa1MSP.peer')",
    "State" : "Instantiatable",
    "CreateTime" : "1544411108000",
    "ChaincodeId" : "code-sacc-1pr09q7jmo0np",
    "ProviderName" : "name",
    "Message" : "ok",
    "ChaincodeName" : "sacc",
    "Install" : true,
    "Input" : "input",
    "ProviderId" : "peers-aaaaaa2-1eqnj5o5w9dt3",
    "DeployTime" : "1544411108000",
    "ChaincodeVersion" : "1.0",
    "ConsortiumId" : "consortium-lianmenyumingyi-hc5d1bwlulg7",
    "ChannelName" : "cname",
    "ChannelId" : "chan-channelx-1l1hmckuuisxo",
    "Path" : "go-sdk-demo/chaincode/src"
  } ]
}

错误码

访问错误中心查看更多错误码。