getSwapDestinationTokens

Free

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

Try it

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

Uses the key saved by kirha auth login.

  • userTokensobject[], required
    Show 5 fields
    • divisibilitynumber, required
    • protocolstring, required

      One of runes, btc

    • tickerstring, required
    • namestring
    • symbolstring
  • fromobject
    Show 2 fields
    • protocolstring, required

      One of runes, btc

    • tickerstring, required
  • protocolstring, default "runes"

    Protocol of the destination tokens to list

    One of runes, btc

  • searchstring