# community.gifthood.feed.getListingExchanges

> Published by [gifthood.community](https://lexicon.garden/identity/did:plc:7prvtl4j6wsfmkrfrnwknuxj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getListingExchanges)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getListingExchanges/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getListingExchanges/examples)

## Definitions

### `community.gifthood.feed.getListingExchanges`

**Type**: `query`

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.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `rkey` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `exchanges` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "community.gifthood.feed.getListingExchanges",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "exchanges"
          ],
          "properties": {
            "exchanges": {
              "type": "array",
              "items": {
                "ref": "community.gifthood.feed.defs#exchangeView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did",
          "rkey"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          },
          "rkey": {
            "type": "string"
          }
        }
      },
      "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."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
