查询以太坊网络
所有文档

          超级链BaaS平台

          查询以太坊网络

          查询以太坊网络

          接口描述 根据网络ID查询以太坊网络详情。

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

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

          请求(Request)

          • 请求语法

            GET /v1/ethereum/network/{networkUuid} HTTP/1.1
            Host: bbe.bj.baidubce.com
            x-bce-date: <x-bce-date>
            x-bce-request-id: <x-bce-request-id>
            Authorization: <Authorization>
          • 请求头域 除公共头域外,无其它特殊头域。
          • 请求参数

            名称 类型 参数位置 描述 是否必须
            networkUuid String URL参数 网络ID 必须

          响应(Response)

          • 响应头域

          除公共头域外,无其它特殊头域。

          • 响应参数

            名称 类型 描述
            networks []EthereumNetworkInfo 以太坊网络详情列表,结构具体定义见附录说明

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

          示例

          • 请求示例

            GET /v1/ethereum/network/6c8054dd-f2e0-b6df-3c1c-12e886759888 HTTP/1.1
            Host: bbe.bj.baidubce.com
            x-bce-date: 2019-01-06T06:55:42Z
            x-bce-request-id: b9485394-c7dc-3cfa-d454-57c34773d08c
            Authorization: bce-auth-v1/5fded23b03594981872fbfadaad70ef6/2019-01-06T06:55:42Z/1800/host/84bc3dd2774cf6a6276a86e0cc7680e01710a1b7cb1a87de552af581131c818f
          • 响应示例

            200
            Content-Length: 2572
            Content-Type: application/json; charset=utf-8
            Date: Fri, 04 Jan 2019 07:24:02 GMT
            
            {
              "data": {
                "name": "eth-test",
                "uuid": "6c8054dd-f2e0-b6df-3c1c-12e886759888",
                "networkSize": 2,
                "chainId": 1574307081,
                "targetGasLimit": 3000000,
                "maxPeers": 2,
                "verbosity": 0,
                "syncMode": "full",
                "gasPrice": 0,
                "difficulty": 1024,
                "gasLimit": 4294967295,
                "genesisAccounts": [
                    {
                        "address": "0xf8f3682DeFfE2E106dd700d78Fb883Dd3423fb84",
                        "privateKey": "xhEN1lYkqDXPXWtUPvhl3q4sWi80vTc3cYbkCf9kgJiDtYkTMjoOnoH25vKUdO426EugIQer+612axjvJYnL9uk7MAks2k9H6SHBr+slq+0=",
                        "balance": 1000000000000000000
                    },
                    {
                        "address": "0xd8D06bCCC44F4D15B4dEf80Ca5af554670F982bf",
                        "privateKey": "SN8p1iy2q2BFnXNQPPJbKuEN8VH4b02eKFHKfME2vUfPQqdYTM0LHaR4VKKdkQJ1XOHL9GAuPmqfnYFatENz31EyZaeoI9AWdRiY0lkWJfI=",
                        "balance": 1000000000000000000
                    }
                ],
                "minerAccount": [
                    {
                        "address": "0x16ddaaD43bCe97212e6E4e2E8Af75307D9dAE4D6",
                        "privateKey": "jbF117h/7W8byjp7pnDQQQUEnvlG9hsMOb+ODEHgqB9gk52FYgpYOK7goZXlqBT+dIgT7Yri4orvDGM1vw/ADGWKsZW5SstjXXyxCNShoJQ=",
                        "balance": 1000000000000000000
                    }
                ],
                "accounts": [
                    {
                        "address": "0xf2aD836E1d63778E14DF6a7A3d022Bd102a3B370",
                        "privateKey": "QuhLS4KBJp7mi766s1cW6L7ZcI2/wO6zMwkft4J9uF47lhg2L2QYozvtwSeS/GFj8+WHX/YquvBkwVODC5vazEl9diXHvORo0x3J+svWDBY=",
                        "balance": -1
                    }
                ],
                "nodeList": {
                    "gethNodes": [
                        {
                            "name": "node-1",
                            "ip": "172.18.235.90",
                            "jsonrpcPort": 8545,
                            "wsrpcPort": 8546,
                            "ipcListenPort": 30303,
                            "ipcDiscoveryPort": 30303,
                            "role": "miner",
                            "desp": ""
                        },
                        {
                            "name": "node-2",
                            "ip": "172.18.106.208",
                            "jsonrpcPort": 8545,
                            "wsrpcPort": 8546,
                            "ipcListenPort": 30303,
                            "ipcDiscoveryPort": 30303,
                            "role": "miner",
                            "desp": ""
                        }
                    ]
                },
                "state": "RUNNING",
                "startTime": "2019-11-21T11:31:22+08:00",
                "netstatsAddress": "http://106.13.107.203:8084",
                "remixAddress": "http://106.13.107.203:8083/#endpoint=http://106.13.107.203:8081/eth-jsonrpc/6c8054dd-f2e0-b6df-3c1c-12e886759888&region=bd",
                "explorerAddress": "http://106.13.107.203:8082?uuid=6c8054dd-f2e0-b6df-3c1c-12e886759888",
                "jsonrpcAddress": "http://106.13.107.203:8081/eth-jsonrpc/6c8054dd-f2e0-b6df-3c1c-12e886759888",
                "deleted": false,
                "errorMessage": "",
                "UserId": "eca97e148cb74e9683d7b7240829d1ff"
              }
            }
          上一篇
          获取以太坊网络部署列表
          下一篇
          删除以太坊网络