getSwapDestinationTokens
Free
Get available destination tokens for a swap. Provide the user's held tokens to see what they can swap to.
Try it
kirha tools run xverse_getSwapDestinationTokens \
--input '{
"userTokens": [
{
"ticker": "<ticker>",
"protocol": "runes",
"divisibility": 1
}
]
}'Uses the key saved by kirha auth login.
userTokensobject[], requiredShow 5 fieldsHide fields
divisibilitynumber, requiredprotocolstring, requiredOne of runes, btc
tickerstring, requirednamestringsymbolstring
fromobjectShow 2 fieldsHide fields
protocolstring, requiredOne of runes, btc
tickerstring, required
protocolstring, default "runes"Protocol of the destination tokens to list
One of runes, btc
searchstring