{
  "opencollection": "1.0.0",
  "info": {
    "name": "1inch Developer Portal APIs Balance Swap API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Swap",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Swap API health check",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/healthcheck",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              }
            ]
          },
          "docs": "Swap API health check"
        },
        {
          "info": {
            "name": "Get a swap quote",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/quote",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              },
              {
                "name": "src",
                "value": "",
                "type": "query",
                "description": "Source token address"
              },
              {
                "name": "dst",
                "value": "",
                "type": "query",
                "description": "Destination token address"
              },
              {
                "name": "amount",
                "value": "",
                "type": "query",
                "description": "Source amount in minor units (wei)"
              },
              {
                "name": "includeTokensInfo",
                "value": "",
                "type": "query"
              },
              {
                "name": "includeProtocols",
                "value": "",
                "type": "query"
              },
              {
                "name": "includeGas",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns the best aggregated quote for a token swap on the given EVM chain."
        },
        {
          "info": {
            "name": "Build a swap transaction",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/swap",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              },
              {
                "name": "src",
                "value": "",
                "type": "query"
              },
              {
                "name": "dst",
                "value": "",
                "type": "query"
              },
              {
                "name": "amount",
                "value": "",
                "type": "query"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "Wallet address that will execute the swap"
              },
              {
                "name": "slippage",
                "value": "",
                "type": "query",
                "description": "Slippage tolerance in percent (e.g. 1 = 1%)"
              },
              {
                "name": "disableEstimate",
                "value": "",
                "type": "query"
              },
              {
                "name": "allowPartialFill",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Build a swap transaction"
        },
        {
          "info": {
            "name": "Get aggregator spender address",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/approve/spender",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              }
            ]
          },
          "docs": "Get aggregator spender address"
        },
        {
          "info": {
            "name": "Build an approve transaction",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/approve/transaction",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              },
              {
                "name": "tokenAddress",
                "value": "",
                "type": "query"
              },
              {
                "name": "amount",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Build an approve transaction"
        },
        {
          "info": {
            "name": "Get current token allowance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/approve/allowance",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              },
              {
                "name": "tokenAddress",
                "value": "",
                "type": "query"
              },
              {
                "name": "walletAddress",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get current token allowance"
        },
        {
          "info": {
            "name": "List supported liquidity sources (protocols)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/liquidity-sources",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              }
            ]
          },
          "docs": "List supported liquidity sources (protocols)"
        },
        {
          "info": {
            "name": "List supported tokens for swapping",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.1inch.dev/swap/v6.0/:chain/tokens",
            "params": [
              {
                "name": "chain",
                "value": "",
                "type": "path",
                "description": "EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)"
              }
            ]
          },
          "docs": "List supported tokens for swapping"
        }
      ]
    }
  ],
  "bundled": true
}