putty
MCPBlockchainDeFi

build_swap_transaction

Build the calldata for a swap transaction against the Uniswap protocols. POSTs to `/v1/swap` with the same fields as `get_swap_quote` plus the signed Permit2 payload. Returns the raw `/swap` response — the unsigned transaction fields (`to`, `data`, `value`, `gasLimit`) the caller's wallet signs and submits. The Putty dashboard signs through the user's Privy embedded wallet in the sign-request modal; external agents sign with their own wallet. The tool never holds a signing key.

Build the calldata for a swap transaction against the Uniswap protocols. POSTs to /v1/swap with the same fields as get_swap_quote plus the signed Permit2 payload.

Input

The tool takes a single JSON object. Every field, its type, and an example are on the generated reference at GET /mcp/tools, under this tool's name.

Calling it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "build_swap_transaction", "arguments": {} }
}

Put your arguments in place of the empty object. A call that fails comes back as a normal result carrying isError: true and a message naming what went wrong, not as a JSON-RPC protocol error.

Notes

Returns the raw /swap response — the unsigned transaction fields (to, data, value, gasLimit) the caller's wallet signs and submits. The Putty dashboard signs through the user's Privy embedded wallet in the sign-request modal; external agents sign with their own wallet. The tool never holds a signing key.

The full request and response shape, and a live playground, live on the generated reference at GET /mcp/tools.

On this page