# getSwapQuotes

**Identifier:** `xverse_getSwapQuotes`

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

Get swap quotes from multiple AMMs. Read-only — does not execute a swap.

## Run it with the CLI

```bash
kirha tools run xverse_getSwapQuotes \
  --input '{
    "from": {
      "ticker": "<ticker>",
      "protocol": "runes"
    },
    "to": {
      "ticker": "<ticker>",
      "protocol": "runes"
    },
    "amount": "<amount>"
  }'
```

`--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_getSwapQuotes",
  "input": {
    "from": {
      "ticker": "<ticker>",
      "protocol": "runes"
    },
    "to": {
      "ticker": "<ticker>",
      "protocol": "runes"
    },
    "amount": "<amount>"
  }
}'
```

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": {
    "amount": {
      "type": "string"
    },
    "amountRaw": {
      "type": "string"
    },
    "from": {
      "properties": {
        "protocol": {
          "enum": [
            "runes",
            "btc"
          ],
          "type": "string"
        },
        "ticker": {
          "type": "string"
        }
      },
      "required": [
        "ticker",
        "protocol"
      ],
      "type": "object"
    },
    "to": {
      "properties": {
        "protocol": {
          "enum": [
            "runes",
            "btc"
          ],
          "type": "string"
        },
        "ticker": {
          "type": "string"
        }
      },
      "required": [
        "ticker",
        "protocol"
      ],
      "type": "object"
    }
  },
  "required": [
    "from",
    "to",
    "amount"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "quotes": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "feePercentage": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "rate": {
            "type": "string"
          },
          "receiveAmount": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "quotes"
  ],
  "type": "object"
}
```

-----

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