{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-dirtroad-dev-tools-web3-evm-eth-get-code",
  "title": "DirtRoad \u00b7 EVM Contract Bytecode Retrieval",
  "url": "https://api.dirtroad.dev/tools/web3/evm/eth-get-code",
  "category": "data",
  "summary": "Fetch raw bytecode of deployed smart contracts by address for verification and analysis.",
  "seo": {
    "title": "Smart Contract Code API | EVM Bytecode | x402",
    "description": "Retrieve deployed smart contract bytecode from any EVM chain. 0.0001 USDC per call. Contract verification and analysis. Base network."
  },
  "use_cases": [
    "Verify contract deployment on-chain",
    "Analyze contract code for security research",
    "Distinguish contracts from externally owned accounts"
  ],
  "ideal_buyer": "Security auditors, contract verifiers, and on-chain analysts needing raw bytecode access.",
  "example_prompt": "Get the bytecode for contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet",
  "example_request_body": {
    "chain": "eip155:1",
    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
  },
  "risk_notes": [
    "May process personal / identity data."
  ],
  "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 bytecode of a smart contract deployed at a specific address on a blockchain network. Returns the contract code as a hex string. Useful for contract verification, analyzing deployed contracts, and checking if an address contains contract code versus being an externally owned account.",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "chain": {},
            "address": {},
            "blockTag": {}
          }
        },
        "output": {
          "type": "object",
          "required": [
            "chain",
            "address",
            "blockTag",
            "code"
          ],
          "properties": {
            "code": {
              "type": "string",
              "description": "Contract code as hex string"
            },
            "chain": {
              "type": "string",
              "description": "CAIP-12 chain identifier"
            },
            "address": {
              "type": "string",
              "description": "Address queried"
            },
            "blockTag": {
              "type": "string",
              "description": "Block tag used"
            }
          }
        }
      }
    }
  ],
  "duplicate_cluster_id": "data-cl-dac20f0d00d8",
  "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-eth-get-code",
    "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-get-code",
    "name": "DirtRoad \u00b7 EVM Contract Bytecode Retrieval",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-get-code",
      "@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/eth-get-code",
    "@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-eth-get-code",
    "description": "Retrieve deployed smart contract bytecode from any EVM chain. 0.0001 USDC per call. Contract verification and analysis. Base network.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-eth-get-code",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "data"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-eth-get-code"
}
