You can call this operation to query the channels of a consortium.

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
Action String Yes DescribeFabricConsortiumChannels

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

ConsortiumId String Yes consortium-lianmenyumingyi-hc5d1bwlulg7

The ID of the consortium.

Location String No cn-hangzhou

The location.

RegionId String No cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
ErrorCode Integer 200

The error code.

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

The ID of the API request.

Result

The channels of the consortium.

BatchTimeout Integer 2

The amount of time to wait after the first transaction arrives for additional transactions before cutting a block.

BlockCount Integer 2

The number of blocks.

ChaincodeCount Integer 2

The number of chaincodes.

ChannelId String chan-channelx-1l1hmckuuisxo

The ID of the channel.

ChannelName String mychammel

The name of the channel.

ConsortiumChannelId Integer 1

The sequence of the channel in the consortium.

ConsortiumId String consortium-lianmenyumingyi-hc5d1bwlulg7

The ID of the consortium.

ConsortiumName String name

The name of the consortium.

CreateTime String 1544411108000

The creation time.

DeleteTime String 1544411108000

The time when the channel was deleted.

Deleted Boolean true

Indicates whether the channel is deleted.

MaxMessageCount Integer 200

The maximum number of transactions that are permitted in a block.

MemberCount Integer 3

The number of channel members.

MemberJoinedCount String 3

The number of members who have joined the consortium.

NeedJoined Boolean true

Indicates whether to join the channel.

OwnerBid String 26842

The business ID of the creator.

OwnerName String uid-*

The creator.

OwnerUid Integer 212

The user ID of the creator.

PreferredMaxBytes Integer 102410241

The preferred maximum number of bytes allowed for.

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

The ID of the API request.

State String Running

The status.

SupportChannelConfig Boolean true

Indicates whether custom parameters are supported.

UpdateTime String 1544411108000

The time when the channel was last updated.

Success Boolean true

Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribeFabricConsortiumChannels
&ConsortiumId=consortium-lianmenyumingyi-hc5d1bwlulg7
&<Common request parameters>

Successful response examples

XML format

<DescribeFabricConsortiumChannelsResponse>
  <result>
		    <BatchTimeout>2</BatchTimeout>
		    <BlockCount>2</BlockCount>
		    <ChaincodeCount>2</ChaincodeCount>
		    <ChannelId>chan-channelx-1l1hmckuuisxo</ChannelId>
		    <ChannelName>mychannel</ChannelName>
		    <ConsortiumId>consortium-lianmenyumingyi-hc5d1bwlulg7</ConsortiumId>
		    <ConsortiumName>name</ConsortiumName>
		    <CreateTime>1544411108000</CreateTime>
		    <DeleteTime>1544411108000</DeleteTime>
		    <Deleted>true</Deleted>
		    <OwnerBid>26842</OwnerBid>
		    <OwnerUid>212</OwnerUid>
		    <PreferredMaxBytes>12356</PreferredMaxBytes>
		    <State>Running</State>
		    <SupportChannelConfig>true</SupportChannelConfig>
		    <UpdateTime>1544411108000</UpdateTime>
	  </result>
	  <RequestId>2537DB1B-F478-431E-A847-5DDAAE2BD251</RequestId>
	  <ErrorCode>200</ErrorCode>
	  <Success>true</Success>
</DescribeFabricConsortiumChannelsResponse>

JSON format

{
	"result":{
		"ConsortiumName":"name",
		"Deleted":"true",
		"ConsortiumId":"consortium-lianmenyumingyi-hc5d1bwlulg7",
		"UpdateTime":"1544411108000",
		"ChannelName":"mychannel",
		"ChaincodeCount":2,
		"OwnerBid":"26842",
		"ChannelId":"chan-channelx-1l1hmckuuisxo",
		"BlockCount":2,
		"DeleteTime":"1544411108000",
		"OwnerUid":212,
		"State":"Running",
		"BatchTimeout":2,
		"SupportChannelConfig":"true",
		"CreateTime":"1544411108000",
		"PreferredMaxBytes":12356
	},
	"RequestId":"2537DB1B-F478-431E-A847-5DDAAE2BD251",
	"Success":true,
	"ErrorCode":200
}

Error codes

For more information about error codes, see Error codes.