获取Quorum联盟详情
所有文档

          超级链BaaS平台

          获取Quorum联盟详情

          获取Quorum联盟详情

          接口描述 获取用户部署的Quorum联盟详情。

          权限说明 请求发起人需要具有合法的AccessKeyID和SecretAccessKey才能发起请求。

          注意事项 如果请求中没有用户验证信息(即匿名访问),返回403 Forbidden,错误信息:AccessDenied

          请求(Request)

          • 请求语法

            GET /v1/quorum/consortium/consortium?consortiumUuid={ConsortiumUuid}&orgUuid={OrgUuid} HTTP/1.1
            Host: bbe.bj.baidubce.com
            x-bce-date: <x-bce-date>
            x-bce-request-id: <x-bce-request-id>
            Authorization: <Authorization>
          • 请求头域 除公共头域外,无其它特殊头域。
          • 请求参数

            名称 类型 位置 描述 是否必须
            orgUuid String Query参数 组织Uuid 必须
            consortiumUuid String Query参数 联盟Uuid 必须

          响应(Response)

          • 响应头域 除公共头域外,无其它特殊头域。
          • 响应参数

            名称 类型 描述
            success Bool 请求结果,true表示请求成功
            result []QuorumNetworkInfo 网络详情列表,结构具体定义见附录说明

            失败响应参考错误码部分。

          示例

          • 请求示例

            GET /v1/quorum/consortium/consortium?orgUuid=bd1f706b-965e-ea99-1071-57b5903b3d73&consortiumUuid=35b33e7e-62f5-a875-7b39-42a5b7de3d0f HTTP/1.1
            Host: bbe.bj.baidubce.com
            x-bce-date: 2019-10-23T06:26:02Z
            x-bce-request-id: b9485394-c7dc-3cfa-d454-57c34773d08c
            Authorization: bce-auth-v1/98cdcde27d8e464d895222fd8023a029/2019-10-23T06:26:02Z/1800/host/1e88313cae40a47550bdf0e3bfa591c06e4443c1ed690d510032e084676b00f8
          • 响应示例

            200
            Content-Length: 3080
            Content-Type: application/json; charset=utf-8
            Date: Wed, 23 Oct 2019 06:26:02 GMT
            {
            	"success": true,
            	"result": {
            		"name": "test-quorum",
            		"domain": "test-quorum",
            		"uuid": "35b33e7e-62f5-a875-7b39-42a5b7de3d0f",
            		"orgUuid": "bd1f706b-965e-ea99-1071-57b5903b3d73",
            		"description": "test-quorum",
            		"status": "RUNNING",
            		"createTime": "2019-09-03T10:51:51+08:00",
            		"consensus": "IBFT",
            		"genesisConfig": {
            			"config": {
            				"chainId": 1567479110,
            				"homesteadBlock": 0,
            				"eip150Block": 0,
            				"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            				"eip155Block": 0,
            				"eip158Block": 0,
            				"byzantiumBlock": 0,
            				"istanbul": {
            					"epoch": 30000,
            					"policy": 0
            				},
            				"txnSizeLimit": 0
            			},
            			"nonce": "0x0",
            			"timestamp": "0x0",
            			"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000f89af85494424bfb3d26adf107e649cc53d41fc300072e56cf94367e836a182c0bb35f0770cd176fd6caeb4976fe943d08e62b5938dae7727b5b69385dee4e24790a19944a7b8026115709fd12f9f6aa48adeb9710c2608fb8410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0",
            			"gasLimit": "0xffffffff",
            			"difficulty": "0x1",
            			"mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
            			"coinbase": "0x0000000000000000000000000000000000000000",
            			"alloc": {
            				"20a12bfa8a1bdd676da3311a9ea1cf6bdd415426": {
            					"balance": "0xc097ce7bc90715b34b9f1000000000"
            				},
            				"253035da1b1d7cbdf6f7a4d79149a9fd03824053": {
            					"balance": "0xc097ce7bc90715b34b9f1000000000"
            				},
            				"6559675fef6a2107b9a8176c2fa6d18a37084780": {
            					"balance": "0xc097ce7bc90715b34b9f1000000000"
            				},
            				"9b1fc94ba654375b375091248543772e6f46e8ad": {
            					"balance": "0xc097ce7bc90715b34b9f1000000000"
            				},
            				"ec4859413cb7f06fdd5cc2a225a90ba12645df63": {
            					"balance": "0xc097ce7bc90715b34b9f1000000000"
            				}
            			},
            			"number": "0x0",
            			"gasUsed": "0x0",
            			"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
            		},
            		"nodeConfig": {
            			"targetGasLimit": 4294967295,
            			"maxPeer": 25,
            			"syncMode": "full",
            			"gasPrice": 0,
            			"blockPeriod": 5,
            			"istanbulRequestTimeout": 10000,
            			"cpuLimit": 0,
            			"memoryLimit": 0
            		},
            		"errorMessage": "",
            		"members": [{
            			"uuid": "e0e7cf90-5255-43e9-9615-7aff3b6fdd59",
            			"orgUuid": "bd1f706b-965e-ea99-1071-57b5903b3d73",
            			"orgName": "org0",
            			"orgDomain": "org0",
            			"consortiumUuid": "35b33e7e-62f5-a875-7b39-42a5b7de3d0f",
            			"consortiumName": "test-quorum",
            			"consortiumDomain": "test-quorum",
            			"userId": "eca97e148cb74e9683d7b7240829d1ff",
            			"cluster_id": "c-46htTIfQ",
            			"validatorNumber": 4,
            			"transactionNodeNumber": 1,
            			"joinedTime": "2019-09-03T10:51:51+08:00",
            			"status": "RUNNING",
            			"errMessage": ""
            		}]
            	},
            	"code": ""
            }
          上一篇
          获取Quorum联盟列表
          下一篇
          获取Quorum联盟节点