百度区块链引擎BBE

    获取Quorum联盟列表

    获取Quorum联盟列表

    接口描述 获取用户部署的Quorum联盟列表。

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

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

    请求(Request)

    • 请求语法

      GET /v1/quorum/consortium/consortiums?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,为空表示不指定组织,返回所有加入的联盟 选填

    响应(Response)

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

      名称 类型 描述
      orderBy String 查询结果排序依据字段
      order String 排序
      pageNo Integer 查询结果页码
      pageSize Integer 每页包含的最大数量
      totalCount Integer 查询结果条数
      result []QuorumNetworkInfo 网络详情列表,结构具体定义见附录说明

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

    示例

    • 请求示例

      GET /v1/quorum/consortium/consortiums?orgUuid=bd1f706b-965e-ea99-1071-57b5904b3d73 HTTP/1.1
      Host: bbe.bj.baidubce.com
      x-bce-date: 2019-10-23T02:49:15Z
      x-bce-request-id: b9485394-c7dc-3cfa-d454-57c34773d08c
      Authorization: bce-auth-v1/98cdcde27d8e464d895222fd8023a029/2019-10-23T02:49:15Z/1800/host/51d09d99b383621ddd4052c55dcd4a3b334b0a103c782fd4ccb58d9e1c1b26cd
    • 响应示例

      200
      Content-Length: 2414
      Content-Type: application/json; charset=utf-8
      Date: Wed, 23 Oct 2019 02:49:15 GMT
      {
        "orderBy": "",
        "order": "",
        "pageNo": 1,
        "pageSize": 1000,
        "totalCount": 1,
        "result": [
            {
                "name": "test-quorum",
                "domain": "test-quorum",
                "uuid": "35b33e7e-62f5-a875-7b39-43a5b7de3d0f",
                "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-46htTIaQ",
                        "validatorNumber": 4,
                        "transactionNodeNumber": 1,
                        "joinedTime": "2019-09-03T10:51:51+08:00",
                        "status": "RUNNING",
                        "errMessage": ""
                    }
                ]
            }
        ]
      }
    上一篇
    网络创建相关接口
    下一篇
    获取Quorum联盟详情