{
  "opencollection": "1.0.0",
  "info": {
    "name": "Token Trading Approval Swap API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-api-key",
      "value": "{{x-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Swap",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create swap calldata",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://trade-api.gateway.uniswap.org/v1/swap",
            "headers": [
              {
                "name": "x-universal-router-version",
                "value": ""
              },
              {
                "name": "x-permit2-disabled",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-key",
              "value": "{{x-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create the calldata for a swap transaction (including wrap/unwrap) against the Uniswap Protocols. If the `quote` parameter includes the fee parameters, then the calldata will include the fee disbursement. The gas estimates will be **more precise** when the the response calldata would be valid if submitted on-chain."
        },
        {
          "info": {
            "name": "Get swaps status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://trade-api.gateway.uniswap.org/v1/swaps",
            "params": [
              {
                "name": "txHashes",
                "value": "0xc286f0adc6a9d6d26d6114df251d9b09d8bfafb2e00af5953193f6af92e110db",
                "type": "query",
                "description": "On-chain transaction hashes. At least one of `txHashes` or `userOpHashes` must be provided."
              },
              {
                "name": "userOpHashes",
                "value": "0xd47b609961a02483c9516d1f326244357e7e0b1d91569ebb4d119dff17e47330",
                "type": "query",
                "description": "ERC-4337 UserOperation hashes. At least one of `txHashes` or `userOpHashes` must be provided."
              },
              {
                "name": "chainId",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-key",
              "value": "{{x-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get the status of swap or bridge transactions. Accepts on-chain transaction hashes (`txHashes`), ERC-4337 userOperation hashes (`userOpHashes`), or both. At least one of the two must contain at least one item."
        },
        {
          "info": {
            "name": "Create swap EIP 5792 calldata",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://trade-api.gateway.uniswap.org/v1/swap_5792",
            "headers": [
              {
                "name": "x-universal-router-version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-key",
              "value": "{{x-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create the EIP 5792 calldata for a swap transaction (including wrap/unwrap and bridging) against the Uniswap Protocols. If the `quote` parameter includes the fee parameters, then the calldata will include the fee disbursement. The gas estimates will be **more precise** when the response calldata would be valid if submitted on-chain."
        },
        {
          "info": {
            "name": "Create swap EIP 7702 calldata",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://trade-api.gateway.uniswap.org/v1/swap_7702",
            "headers": [
              {
                "name": "x-universal-router-version",
                "value": ""
              },
              {
                "name": "x-erc20eth-enabled",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-key",
              "value": "{{x-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create the EIP 7702 calldata for a swap transaction (including wrap/unwrap and bridging) against the Uniswap Protocols. If the `quote` parameter includes the fee parameters, then the calldata will include the fee disbursement. The gas estimates will be **more precise** when the the response calldata would be valid if submitted on-chain.\n\nNative ETH / UniswapX setup: When `x-erc20eth-enabled` is `true` and the input token is native ETH, the response may include an additional native approval call "
        }
      ]
    }
  ],
  "bundled": true
}