---
agentTools:
  projectIndex: https://squidrouter.readme.io/llms.txt
---

# Get supported chains

Returns supported chain/s

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "1",
    "title": "Squid Api"
  },
  "servers": [
    {
      "url": "https://api.0xsquid.com/v1/"
    }
  ],
  "paths": {
    "/chains": {
      "get": {
        "description": "Returns supported chain/s",
        "summary": "Get supported chains",
        "parameters": [
          {
            "in": "query",
            "name": "chainId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Chain Id",
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "List of supported chains",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Chains"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unkown error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Chain": {
        "type": "object",
        "properties": {
          "chainName": {
            "type": "string"
          },
          "chainType": {
            "type": "string"
          },
          "chainId": {
            "type": "string"
          },
          "networkName": {
            "type": "string"
          },
          "rpc": {
            "type": "string"
          },
          "internalRpc": {
            "type": "string"
          },
          "blockExplorerUrls": {
            "type": "string"
          },
          "nativeCurrency": {
            "type": "object"
          },
          "chainNativeContracts": {
            "type": "object"
          },
          "axelarContracts": {
            "type": "object"
          },
          "squidContracts": {
            "type": "object"
          }
        },
        "xml": {
          "name": "Chain"
        }
      },
      "Chains": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Chain"
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "errorType": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 104,
      "2": 90,
      "3": 82,
      "4": 97,
      "5": 103,
      "6": 167,
      "7": 0,
      "8": 44,
      "9": 199,
      "10": 135,
      "11": 142
    }
  }
}
```