Uniswap · JSON Structure

Uniswap Create Swap Response Structure

JSON Structure for CreateSwapResponse from Uniswap Trading API

Type: Properties: 0
BlockchainCryptocurrencyDeFiDecentralized ExchangeLiquiditySwaps

Uniswap Create Swap Response Structure is a JSON Structure definition published by Uniswap. It conforms to the https://json-schema.org/draft/2020-12/schema meta-schema.

Meta-schema: https://json-schema.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CreateSwapResponse Structure",
  "description": "JSON Structure for CreateSwapResponse from Uniswap Trading API",
  "structure": {
    "type": "object",
    "properties": {
      "requestId": {
        "type": "string",
        "description": "A unique ID for the request."
      },
      "swap": {
        "type": "object",
        "properties": {
          "to": {
            "$ref": "receiverWalletAddress"
          },
          "from": {
            "$ref": "senderWalletAddress"
          },
          "data": {
            "type": "string",
            "description": "The calldata for the transaction."
          },
          "value": {
            "type": "string",
            "description": "The quantity of ETH tokens approved for spending by the transaction, denominated in wei. Note that by default Uniswap Labs sets this to the maximum approvable spend."
          },
          "gasLimit": {
            "$ref": "gasLimit"
          },
          "chainId": {
            "$ref": "ChainId"
          },
          "maxFeePerGas": {
            "$ref": "maxFeePerGas"
          },
          "maxPriorityFeePerGas": {
            "$ref": "maxPriorityFeePerGas"
          },
          "gasPrice": {
            "$ref": "gasPrice"
          }
        },
        "required": [
          "to",
          "from",
          "data",
          "value",
          "chainId"
        ]
      },
      "gasFee": {
        "type": "string",
        "description": "The total estimated gas cost of this transaction (eg. `gasLimit` multiplied by `maxFeePerGas`) in the base unit of the chain."
      }
    },
    "required": [
      "requestId",
      "swap"
    ]
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/uniswap-create-swap-response-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.