0x · Schema

0x Supported Chain

A chain that 0x can route swaps on. Returned by GET /swap/chains, GET /gasless/chains, and GET /cross-chain/sources.

CryptocurrencyDeFiDEX AggregatorSwapGaslessCross-ChainPermit2LiquidityTrade AnalyticsWeb3SettlementSmart Contracts

Properties

Name Type Description
chainId integer
name string
shortName string
nativeCurrency string
swapSupported boolean
gaslessSupported boolean
crossChainSupported boolean
View JSON Schema on GitHub

JSON Schema

0x-supported-chain-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/0x/main/json-schema/0x-supported-chain-schema.json",
  "title": "0x Supported Chain",
  "description": "A chain that 0x can route swaps on. Returned by GET /swap/chains, GET /gasless/chains, and GET /cross-chain/sources.",
  "type": "object",
  "properties": {
    "chainId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "shortName": {
      "type": "string"
    },
    "nativeCurrency": {
      "type": "string"
    },
    "swapSupported": {
      "type": "boolean"
    },
    "gaslessSupported": {
      "type": "boolean"
    },
    "crossChainSupported": {
      "type": "boolean"
    }
  },
  "required": [
    "chainId",
    "name"
  ]
}