putty
API ReferenceTools

Quote a swap through a putty pool

Computes putty's fee on a swap and the amount the trader actually receives or pays. The fee is `floor(unspecifiedAmount * 30 / 10_000)` in exact integer arithmetic, so the quote agrees with the fork simulation to the wei. `unspecifiedAmount` is the amount on the far side of what the trader fixed: the output for an exact-input swap, the input for an exact-output swap. putty's fee is always reported as its own line, separate from the pool fee and any creator fee.

POST
/pools/quote

Computes putty's fee on a swap and the amount the trader actually receives or pays. The fee is floor(unspecifiedAmount * 30 / 10_000) in exact integer arithmetic, so the quote agrees with the fork simulation to the wei. unspecifiedAmount is the amount on the far side of what the trader fixed: the output for an exact-input swap, the input for an exact-output swap. putty's fee is always reported as its own line, separate from the pool fee and any creator fee.

Authorization

bearerAuth
AuthorizationBearer <token>

A bearer token. The Account routes accept a Privy access token; the MCP transport accepts an sk- API key issued by POST /account/api-keys.

In: header

Request Body

application/json

The swap's amounts and direction.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/pools/quote" \  -H "Content-Type: application/json" \  -d '{    "specifiedAmount": "string",    "unspecifiedAmount": "string",    "exactInput": true  }'
{  "specifiedAmount": "string",  "unspecifiedAmount": "string",  "puttyFeeAmount": "string",  "netAmount": "string",  "exactInput": true,  "fees": [    {      "label": "string",      "bps": 0    }  ]}