{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-dirtroad-dev-tools-web3-evm-eth-get-block-by-hash",
  "title": "DirtRoad \u00b7 EVM Block by Hash Lookup",
  "url": "https://api.dirtroad.dev/tools/web3/evm/eth-get-block-by-hash",
  "category": "data",
  "summary": "Fetch detailed block information including header data, transactions, and metadata for a specified EVM block hash.",
  "seo": {
    "title": "EVM Block Data by Hash API | DirtRoad x402",
    "description": "Retrieve complete EVM block data by hash via x402 micropayment. Block headers, transactions, and metadata at $0.0001 per request."
  },
  "use_cases": [
    "Verify block inclusion for transactions",
    "Trace transaction history through block data",
    "Audit blockchain state at specific block heights",
    "Build block explorers and verification tools"
  ],
  "ideal_buyer": "Blockchain developers, auditors, and explorers needing granular block data access.",
  "example_prompt": "Get the full block data for hash 0x3d8f3c7e2a1b9d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e",
  "example_request_body": {
    "blockHash": "0x3d8f3c7e2a1b9d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e",
    "includeTransactions": true
  },
  "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 detailed information about a specific block by its hash. Returns complete block data including header information, transactions (optionally), and metadata. Useful for block verification, transaction tracing, and blockchain exploration by block hash.",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "chain": {},
            "blockHash": {},
            "includeTransactions": {}
          }
        },
        "output": {
          "type": "object",
          "required": [
            "chain",
            "blockHash",
            "includeTransactions",
            "block"
          ],
          "properties": {
            "block": {
              "type": "object",
              "properties": {
                "hash": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Block hash or null if pending"
                },
                "size": {
                  "type": "string",
                  "description": "Block size as string"
                },
                "miner": {
                  "type": "string",
                  "description": "Miner address"
                },
                "nonce": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Nonce or null if pending"
                },
                "number": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Block number as string or null if pending"
                },
                "uncles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Uncle hashes"
                },
                "gasUsed": {
                  "type": "string",
                  "description": "Gas used as string"
                },
                "mixHash": {
                  "type": "string",
                  "description": "Mix hash"
                },
                "gasLimit": {
                  "type": "string",
                  "description": "Gas limit as string"
                },
                "extraData": {
                  "type": "string",
                  "description": "Extra data field"
                },
                "logsBloom": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Logs bloom filter"
                },
                "stateRoot": {
                  "type": "string",
                  "description": "State root"
                },
                "timestamp": {
                  "type": "string",
                  "description": "Timestamp as string"
                },
                "difficulty": {
                  "type": "string",
                  "description": "Block difficulty as string"
                },
                "parentHash": {
                  "type": "string",
                  "description": "Parent block hash"
                },
                "sealFields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Seal fields"
                },
                "sha3Uncles": {
                  "type": "string",
                  "description": "SHA3 of uncles"
                },
                "blobGasUsed": {
                  "type": "string",
                  "description": "Total blob gas used as string"
                },
                "withdrawals": {
                  "type": [
                    "array",
                    "undefined"
                  ],
                  "description": "Withdrawal objects"
                },
                "receiptsRoot": {
                  "type": "string",
                  "description": "Receipts root"
                },
                "transactions": {
                  "type": "array",
                  "description": "Transaction hashes or objects"
                },
                "baseFeePerGas": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Base fee per gas as string"
                },
                "excessBlobGas": {
                  "type": "string",
                  "description": "Excess blob gas as string"
                },
                "totalDifficulty": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Total difficulty as string"
                },
                "withdrawalsRoot": {
                  "type": [
                    "string",
                    "undefined"
                  ],
                  "description": "Withdrawals root"
                },
                "transactionsRoot": {
                  "type": "string",
                  "description": "Transactions root"
                },
                "parentBeaconBlockRoot": {
                  "type": [
                    "string",
                    "undefined"
                  ],
                  "description": "Parent beacon block root"
                }
              },
              "description": "Complete block data with all BigInt values converted to strings"
            },
            "chain": {
              "type": "string",
              "description": "CAIP-12 chain identifier"
            },
            "blockHash": {
              "type": "string",
              "description": "Block hash requested"
            },
            "includeTransactions": {
              "type": "boolean",
              "description": "Whether transactions were included"
            }
          }
        }
      }
    }
  ],
  "duplicate_cluster_id": "data-cl-b7003399e1a3",
  "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-block-by-hash",
    "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-get-block-by-hash",
    "name": "DirtRoad \u00b7 EVM Block by Hash Lookup",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-get-block-by-hash",
      "@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-block-by-hash",
    "@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-block-by-hash",
    "description": "Retrieve complete EVM block data by hash via x402 micropayment. Block headers, transactions, and metadata at $0.0001 per request.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-eth-get-block-by-hash",
      "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-block-by-hash"
}
