{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-dirtroad-dev-tools-web3-evm-net-version",
  "title": "Dirt Road \u00b7 Get EVM Network Version (Chain ID)",
  "url": "https://api.dirtroad.dev/tools/web3/evm/net-version",
  "category": "tools",
  "summary": "Returns the network version (chain ID) and CAIP-12 chain identifier for the connected EVM blockchain.",
  "seo": {
    "title": "EVM Chain ID Lookup API | x402 Web3 Tool",
    "description": "Retrieve EVM network version and chain ID. $0.0001 USDC per call. Base network. CAIP-12 chain identifier."
  },
  "use_cases": [
    "Verify chain ID before submitting transactions",
    "Confirm network compatibility for dApp operations",
    "Retrieve CAIP-12 identifier for cross-chain standards"
  ],
  "ideal_buyer": "EVM dApp developers and wallet agents verifying network configuration.",
  "example_prompt": "Get the chain ID and network version for the current EVM connection",
  "example_request_body": {
    "chain": {}
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "cheap_outlier",
    "ratio": 0.005,
    "median_category_atomic": 20000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x71dc0bc68e7f0e2c5aace661b0f3fb995a80aaf4",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "100",
      "max_timeout_seconds": 300,
      "mime_type": "application/json",
      "description": "Retrieve the network version (chain ID) of the connected blockchain network. Returns the numeric chain identifier as a string. Essential for identifying which blockchain network the node is connected to and ensuring transaction compatibility.",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "chain": {}
          }
        },
        "output": {
          "type": "object",
          "required": [
            "chain",
            "version"
          ],
          "properties": {
            "chain": {
              "type": "string",
              "description": "CAIP-12 chain identifier"
            },
            "version": {
              "type": "string",
              "description": "Network version (chain ID)"
            }
          }
        }
      }
    }
  ],
  "duplicate_cluster_id": "data-cl-8e3b44348666",
  "origin": {
    "slug": "api-dirtroad-dev",
    "host": "api.dirtroad.dev",
    "url": "https://api.dirtroad.dev",
    "favicon": "https://dirtroad.dev/mintlify-assets/_mintlify/favicons/dirtroaddev/hL1CxJhINP8GaPGW/_generated/favicon/favicon.ico"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-net-version",
    "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-net-version",
    "name": "Dirt Road \u00b7 Get EVM Network Version (Chain ID)",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-net-version",
      "@type": "Offer",
      "price": "0.0001",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.000100",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://api.dirtroad.dev/tools/web3/evm/net-version",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/api-dirtroad-dev",
      "url": "https://api.dirtroad.dev",
      "name": "api.dirtroad.dev",
      "@type": "Organization"
    },
    "identifier": "api-dirtroad-dev-tools-web3-evm-net-version",
    "description": "Retrieve EVM network version and chain ID. $0.0001 USDC per call. Base network. CAIP-12 chain identifier.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-net-version",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "tools"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-net-version"
}
