# getSwapDestinationTokens

**Identifier:** `xverse_getSwapDestinationTokens`

**Provider:** [Xverse](https://kirha.com/providers/xverse.md)

Get available destination tokens for a swap. Provide the user's held tokens to see what they can swap to.

## Run it with the CLI

```bash
kirha tools run xverse_getSwapDestinationTokens \
  --input '{
    "userTokens": [
      {
        "ticker": "<ticker>",
        "protocol": "runes",
        "divisibility": 1
      }
    ]
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "xverse_getSwapDestinationTokens",
  "input": {
    "userTokens": [
      {
        "ticker": "<ticker>",
        "protocol": "runes",
        "divisibility": 1
      }
    ]
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "from": {
      "properties": {
        "protocol": {
          "enum": [
            "runes",
            "btc"
          ],
          "type": "string"
        },
        "ticker": {
          "type": "string"
        }
      },
      "required": [
        "ticker",
        "protocol"
      ],
      "type": "object"
    },
    "protocol": {
      "default": "runes",
      "description": "Protocol of the destination tokens to list",
      "enum": [
        "runes",
        "btc"
      ],
      "type": "string"
    },
    "search": {
      "type": "string"
    },
    "userTokens": {
      "items": {
        "properties": {
          "divisibility": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "protocol": {
            "enum": [
              "runes",
              "btc"
            ],
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "ticker": {
            "type": "string"
          }
        },
        "required": [
          "ticker",
          "protocol",
          "divisibility"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "userTokens"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "tokens": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "divisibility": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "ticker": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "tokens"
  ],
  "type": "object"
}
```

-----

[All Xverse tools](https://kirha.com/providers/xverse.md) · [< Back to tools list](https://kirha.com/tools.md)