iriscli service binding

描述

查询服务绑定

用法

iriscli service binding <flags>

标志

Name, shorthand Default Description Required
--bind-chain-id 绑定该服务的区块链ID
--def-chain-id 定义该服务的区块链ID
--provider 服务提供者的区块链地址(bech32编码)
--service-name 服务名称
--help, -h 查询绑定命令帮助

示例

查询服务绑定

iriscli service binding --def-chain-id=<service_define_chain-id> --service-name=<service-name> --bind-chain-id=<service_bind_chain-id> --provider=<provider_address>

运行成功以后,返回的结果如下:

{
  "type": "iris-hub/service/SvcBinding",
  "value": {
    "def_name": "test-service",
    "def_chain_id": "test",
    "bind_chain_id": "test",
    "provider": "iaa1ydhmma8l4m9dygsh7l08fgrwka6yczs0se0tvs",
    "binding_type": "Local",
    "deposit": [
      {
        "denom": "iris-atto",
        "amount": "1000000000000000000000"
      }
    ],
    "price": [
      {
        "denom": "iris-atto",
        "amount": "1000000000000000000"
      }
    ],
    "level": {
      "avg_rsp_time": "10000",
      "usable_time": "100"
    },
    "available": true,
    "disable_height": "0"
  }
}