Skip to main content
GET
/
api
/
chains
List supported chains
curl --request GET \
  --url https://godirekt.xyz/api/chains \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "chains": [
    {
      "id": 1,
      "name": "Ethereum",
      "shortName": "eth",
      "nativeToken": "ETH"
    },
    {
      "id": 10,
      "name": "Optimism",
      "shortName": "op",
      "nativeToken": "ETH"
    },
    {
      "id": 56,
      "name": "BNB Chain",
      "shortName": "bnb",
      "nativeToken": "BNB"
    },
    {
      "id": 137,
      "name": "Polygon",
      "shortName": "matic",
      "nativeToken": "MATIC"
    },
    {
      "id": 8453,
      "name": "Base",
      "shortName": "base",
      "nativeToken": "ETH"
    },
    {
      "id": 42161,
      "name": "Arbitrum One",
      "shortName": "arb",
      "nativeToken": "ETH"
    },
    {
      "id": 42220,
      "name": "Celo",
      "shortName": "celo",
      "nativeToken": "CELO"
    },
    {
      "id": 43114,
      "name": "Avalanche",
      "shortName": "avax",
      "nativeToken": "AVAX"
    },
    {
      "id": 792703809,
      "name": "Solana",
      "shortName": "sol",
      "nativeToken": "SOL"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://direkt.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Example request

curl --location 'https://godirekt.xyz/api/chains' \
  --header 'x-api-key: YOUR_API_KEY'

Example response

{
  "success": true,
  "chains": [
    { "id": 1,         "name": "Ethereum",     "shortName": "eth",  "nativeToken": "ETH"  },
    { "id": 10,        "name": "Optimism",      "shortName": "op",   "nativeToken": "ETH"  },
    { "id": 56,        "name": "BNB Chain",     "shortName": "bnb",  "nativeToken": "BNB"  },
    { "id": 137,       "name": "Polygon",       "shortName": "matic","nativeToken": "MATIC"},
    { "id": 8453,      "name": "Base",          "shortName": "base", "nativeToken": "ETH"  },
    { "id": 42161,     "name": "Arbitrum One",  "shortName": "arb",  "nativeToken": "ETH"  },
    { "id": 792703809, "name": "Solana",        "shortName": "sol",  "nativeToken": "SOL"  }
  ]
}
Use the id field as fromChainId / toChainId when creating a quote.

Authorizations

x-api-key
string
header
required

Response

200 - application/json

List of supported chains

success
boolean
chains
object[]