{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-dirtroad-dev-tools-web3-evm-eth-get-transaction-by-block-hash-and-index",
  "title": "DirtRoad \u00b7 EVM Transaction by Block Hash & Index",
  "url": "https://api.dirtroad.dev/tools/web3/evm/eth-get-transaction-by-block-hash-and-index",
  "category": "data",
  "summary": "Fetch complete transaction data for a specific position within an EVM block using block hash and index.",
  "seo": {
    "title": "EVM Transaction Lookup API - Block Hash & Index Query",
    "description": "Retrieve specific EVM transactions by block hash and transaction index. Precise blockchain data lookup with BigInt string conversion via x402."
  },
  "use_cases": [
    "Verify transaction inclusion at specific block positions",
    "Audit blockchain data with precise indexing",
    "Build block explorers with granular transaction lookup"
  ],
  "ideal_buyer": "Blockchain developers, auditors, and infrastructure providers needing precise EVM transaction access.",
  "example_prompt": "Get the transaction at index 5 in block with hash 0x...",
  "example_request_body": {
    "blockHash": "0x...",
    "transactionIndex": "5"
  },
  "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 a specific transaction from a block by block hash and transaction index. Returns the complete transaction data for the transaction at the specified position within the block. Useful for precise transaction lookup using block hash verification.",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "chain": {},
            "blockHash": {},
            "transactionIndex": {}
          }
        },
        "output": {
          "type": "object",
          "required": [
            "chain",
            "blockHash",
            "transactionIndex",
            "transaction"
          ],
          "properties": {
            "chain": {
              "type": "string",
              "description": "CAIP-12 chain identifier"
            },
            "blockHash": {
              "type": "string",
              "description": "Block hash queried"
            },
            "transaction": {
              "type": "object",
              "required": [
                "blockHash",
                "blockNumber",
                "from",
                "gas",
                "hash",
                "input",
                "nonce",
                "r",
                "s",
                "to",
                "transactionIndex",
                "typeHex",
                "v",
                "value",
                "yParity",
                "type"
              ],
              "properties": {
                "r": {
                  "type": "string",
                  "description": "ECDSA signature r value"
                },
                "s": {
                  "type": "string",
                  "description": "ECDSA signature s value"
                },
                "v": {
                  "type": "string",
                  "description": "ECDSA recovery ID as string"
                },
                "to": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Transaction recipient or null if contract deployment"
                },
                "gas": {
                  "type": "string",
                  "description": "Gas provided for transaction execution as string"
                },
                "from": {
                  "type": "string",
                  "description": "Transaction sender address"
                },
                "hash": {
                  "type": "string",
                  "description": "Transaction hash"
                },
                "type": {
                  "type": "string",
                  "description": "Transaction type (legacy, eip1559, etc.)"
                },
                "input": {
                  "type": "string",
                  "description": "Contract code or method call data"
                },
                "nonce": {
                  "type": "number",
                  "description": "Transaction nonce"
                },
                "value": {
                  "type": "string",
                  "description": "Value in wei sent as string"
                },
                "chainId": {
                  "type": "number",
                  "description": "Chain ID"
                },
                "typeHex": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Transaction type as hex"
                },
                "yParity": {
                  "type": "number",
                  "description": "Parity of the y-value of secp256k1 signature"
                },
                "gasPrice": {
                  "type": "string",
                  "description": "Gas price for legacy transactions as string"
                },
                "blockHash": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Hash of block containing this transaction or null if pending"
                },
                "accessList": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "address": {
                        "type": "string",
                        "description": "Contract address"
                      },
                      "storageKeys": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Storage keys"
                      }
                    }
                  },
                  "description": "EIP-2930 access list"
                },
                "blockNumber": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Block number as string or null if pending"
                },
                "maxFeePerGas": {
                  "type": "string",
                  "description": "Maximum fee per gas for EIP-1559 as string"
                },
                "maxFeePerBlobGas": {
                  "type": "string",
                  "description": "Maximum fee per blob gas for EIP-4844 as string"
                },
                "transactionIndex": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Index of transaction in block or null if pending"
                },
                "authorizationList": {
                  "type": "array",
                  "description": "EIP-7702 authorization list"
                },
                "blobVersionedHashes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "EIP-4844 blob versioned hashes"
                },
                "maxPriorityFeePerGas": {
                  "type": "string",
                  "description": "Maximum priority fee per gas for EIP-1559 as string"
                }
              },
              "description": "Complete transaction data with all BigInt values converted to strings"
            },
            "transactionIndex": {
              "type": "string",
              "description": "Transaction index requested"
            }
          }
        }
      }
    }
  ],
  "duplicate_cluster_id": "data-cl-c6b17b49415f",
  "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-transaction-by-block-hash-and-index",
    "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-get-transaction-by-block-hash-and-index",
    "name": "DirtRoad \u00b7 EVM Transaction by Block Hash & Index",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-get-transaction-by-block-hash-and-index",
      "@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-transaction-by-block-hash-and-index",
    "@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-transaction-by-block-hash-and-index",
    "description": "Retrieve specific EVM transactions by block hash and transaction index. Precise blockchain data lookup with BigInt string conversion via x402.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-eth-get-transaction-by-block-hash-and-index",
      "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-transaction-by-block-hash-and-index"
}
