---
updatedAt: 2025-03-07T22:18:24.000Z
agentTools:
  projectIndex: https://layerswapapi.readme.io/llms.txt
---

# /api/v2/networks

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Layerswap API V2",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.layerswap.io",
      "description": "Mainnet"
    }
  ],
  "paths": {
    "/api/v2/networks": {
      "get": {
        "tags": [
          "Swaps"
        ],
        "parameters": [
          {
            "name": "network_types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NetworkType"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseListNetworkWithTokensModel"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "additionalProperties": false
      },
      "ApiResponseListNetworkWithTokensModel": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ApiError"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NetworkWithTokensModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NetworkMetadata": {
        "type": "object",
        "properties": {
          "listing_date": {
            "type": "string",
            "format": "date-time"
          },
          "evm_oracle_contract": {
            "type": "string",
            "nullable": true
          },
          "evm_multicall_contract": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NetworkType": {
        "enum": [
          "evm",
          "starknet",
          "solana",
          "cosmos",
          "starkex",
          "zksynclite",
          "ton",
          "paradex",
          "tron"
        ],
        "type": "string"
      },
      "NetworkWithTokensModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "logo": {
            "type": "string"
          },
          "chain_id": {
            "type": "string",
            "nullable": true
          },
          "node_url": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/NetworkType"
          },
          "transaction_explorer_template": {
            "type": "string"
          },
          "account_explorer_template": {
            "type": "string"
          },
          "token": {
            "$ref": "#/components/schemas/TokenModel"
          },
          "metadata": {
            "$ref": "#/components/schemas/NetworkMetadata"
          },
          "deposit_methods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tokens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TokenModel"
            }
          }
        },
        "additionalProperties": false
      },
      "TokenModel": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "logo": {
            "type": "string"
          },
          "contract": {
            "type": "string",
            "nullable": true
          },
          "decimals": {
            "type": "integer",
            "format": "int32"
          },
          "price_in_usd": {
            "type": "number",
            "format": "double"
          },
          "precision": {
            "type": "number",
            "format": "double"
          },
          "listing_date": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "X-LS-APIKEY": {
        "type": "apiKey",
        "name": "X-LS-APIKEY",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-LS-APIKEY": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```