Skip to main content
Glama

TorrentSwap

Create a swap (deposit address)

create_swap
Idempotent

Create a swap from a quoteToken returned by get_quote. Returns a one-time depositAddress, the exact amount to send, expiresAt and a swapId for tracking. Only call after the user confirmed the route and both addresses. The swap only happens when the user sends the funds. Repeating the call with the same quoteToken and addresses returns the same deposit address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteTokenYesquoteToken of the chosen route (valid for about 2 minutes).
refundAddressYesAddress on the sell asset's network that receives a refund if the swap cannot complete.
destinationAddressYesAddress that receives the bought asset, on the buy asset's network.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources