{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "getTrustlines",
  "type": "array",
  "items": {
    "properties": {
      "specification": {
        "$ref": "trustline",
        "description": "A trust line specification that would produce this trust line in its current state."
      },
      "counterparty": {
        "properties": {
          "limit": {
            "$ref": "value",
            "description": "The maximum amount that the counterparty can be owed through the trust line."
          },
          "ripplingDisabled": {
            "type": "boolean",
            "description": "If true, payments cannot ripple through this trustline."
          },
          "frozen": {
            "type": "boolean",
            "description": "If true, the trust line is frozen, which means that funds can only be sent directly to the counterparty."
          },
          "authorized": {
            "type": "boolean",
            "description": "If true, the counterparty authorizes this party to hold issuances from the counterparty."
          }
        },
        "description": "Properties of the trustline from the perspective of the counterparty.",
        "required": ["limit"],
        "additionalProperties": false
      },
      "state": {
        "properties": {
          "balance": {
            "$ref": "signedValue",
            "description": "The balance on the trust line, representing which party owes the other and by how much."
          }
        },
        "description": "Non-settings details of the trust line's state.",
        "required": ["balance"],
        "additionalProperties": false
      }
    },
    "required": ["specification", "counterparty", "state"],
    "additionalProperties": false
  }
}
