{"openapi":"3.0.0","info":{"title":"Bitte Uniswap Agent","description":"API for interactions with Uniswap V3","version":"1.0.1"},"servers":[{"url":"https://near-uniswap-agent.vercel.app"}],"x-mb":{"account-id":"max-normal.near","assistant":{"name":"Uniswap Assistant","description":"An assistant that generates transaction data for Uniswap V3 Interactions","instructions":"Encodes transactions as signature requests on EVM networks. This assistant is only for EVM networks. Passes the the transaction fields of the response to generate-evm-tx tool for signing and displays the meta content of the response to the user after signing. For selling native assets, such as ETH, xDAI, POL, BNB it uses 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE as the sellToken. It does not infer the chainId. Do not infer the token decimals. Use Token Units for sellAmountBeforeFee. Uses token symbols for sellToken and buyToken unless addresses are provided. Always passes connected wallet as evmAddress on any request requiring evmAddress.","tools":[{"type":"generate-evm-tx"}],"image":"https://near-uniswap-agent.vercel.app/uniswap.svg","categories":["defi"],"chainIds":[1,10,56,137,1868,8453,42161,42220,43114,81457]}},"paths":{"/api/tools/uniswap":{"post":{"tags":["uniswap"],"operationId":"swap","summary":"Quote a price and fee for the specified order parameters. Posts unsigned order to Uniswap and returns Signable payload","description":"Given a partial order compute the minimum fee and a price estimate for the order. Return a full order that can be used directly for signing, and with an included signature, passed directly to the order creation endpoint.","parameters":[{"$ref":"#/components/parameters/chainId"},{"$ref":"#/components/parameters/evmAddress"},{"$ref":"#/components/parameters/sellToken"},{"$ref":"#/components/parameters/buyToken"},{"$ref":"#/components/parameters/receiver"},{"$ref":"#/components/parameters/sellAmount"}],"responses":{"200":{"$ref":"#/components/responses/SignRequestResponse200"},"400":{"description":"Error quoting order."},"404":{"description":"No route was found for the specified order."},"429":{"description":"Too many order quotes."},"500":{"description":"Unexpected error quoting an order."}}}}},"components":{"parameters":{"chainId":{"name":"chainId","in":"query","required":true,"description":"EVM Network (aka chain ID)","schema":{"type":"number"},"example":100},"address":{"name":"address","in":"query","required":true,"description":"20 byte Ethereum address with 0x prefix","schema":{"type":"string"},"example":"0x6810e776880c02933d47db1b9fc05908e5386b96"},"sellAmount":{"in":"query","required":true,"schema":{"type":"string"},"name":"sellAmount","description":"The amount of tokens to sell before fees, represented as a decimal string in token units. Not Atoms."},"evmAddress":{"name":"evmAddress","in":"query","required":true,"description":"address of connected wallet.","schema":{"type":"string"},"example":"0x6810e776880c02933d47db1b9fc05908e5386b96"},"receiver":{"name":"receiver","in":"query","required":true,"description":"The address to receive the proceeds of the trade, instead of the sender's address.","schema":{"type":"string"},"example":"0x6810e776880c02933d47db1b9fc05908e5386b96"},"buyToken":{"name":"buyToken","in":"query","required":true,"description":"Token to be bought.","schema":{"type":"string"},"example":"0x6810e776880c02933d47db1b9fc05908e5386b96"},"sellToken":{"name":"sellToken","in":"query","required":true,"description":"Token to be sold.","schema":{"type":"string"},"example":"0x6810e776880c02933d47db1b9fc05908e5386b96"}},"responses":{"SignRequestResponse200":{"description":"Successful signing request","content":{"application/json":{"schema":{"type":"object","required":["transaction"],"properties":{"transaction":{"$ref":"#/components/schemas/SignRequest"},"meta":{"type":"object","additionalProperties":true,"example":{"message":"Submitted"}}}}}}},"BadRequest400":{"description":"Bad Request - Invalid or missing parameters","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","example":false},"message":{"type":"string","example":"Missing required parameters: chainId or amount"}}}}}}},"schemas":{"Address":{"description":"20 byte Ethereum address encoded as a hex with `0x` prefix.","type":"string","example":"0x6810e776880c02933d47db1b9fc05908e5386b96"},"SignRequest":{"type":"object","required":["method","chainId","params"],"properties":{"method":{"type":"string","enum":["eth_sign","personal_sign","eth_sendTransaction","eth_signTypedData","eth_signTypedData_v4"],"description":"The signing method to be used."},"chainId":{"type":"integer","description":"The ID of the Ethereum chain."},"params":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/MetaTransaction"}},{"type":"array","items":{"type":"string"}}]}}},"MetaTransaction":{"type":"object","description":"Sufficient data representing an EVM transaction","properties":{"to":{"$ref":"#/components/schemas/Address"},"data":{"type":"string","description":"Transaction calldata","example":"0xd0e30db0"},"value":{"type":"string","description":"Transaction value","example":"0x1b4fbd92b5f8000"}},"required":["to","data","value"]}}},"x-readme":{"explorer-enabled":true,"proxy-enabled":true}}