{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The exchange chains a listing surface should care about — AppView-derived. For a standing listing: the in-flight chains (state pending or completed), at most one per counterparty. For a non-standing listing: the single active exchange (including a confirmed one), as a 0-or-1 element array. Unpublished method; served by the gifthood AppView.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "exchanges": {
              "items": {
                "ref": "community.gifthood.feed.defs#exchangeView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "exchanges"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          },
          "rkey": {
            "type": "string"
          }
        },
        "required": [
          "did",
          "rkey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "community.gifthood.feed.getListingExchanges",
  "lexicon": 1
}
