# Blockscout — Get batch by AnyTrust data hash.

Find Blockscout Arbitrum-family batches by AnyTrust data hash via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including anyTrust data hash, reported signer records, and reported commitment-transaction status for da reference tools, and batch investigation, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/blockscout/blockscout-get-batch-by-anytrust-data-hash/8a181f5c-4943-4906-b45f-924b137d6afe/
API ID: 8a181f5c-4943-4906-b45f-924b137d6afe
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/arbitrum/batches/da/anytrust/{data_hash}
Page update time: 2026-12-03T02:49:17.688Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:17.024Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout AnyTrust Batch Lookup API

Supply chain\_id and data\_hash. The default object describes a matched batch and its AnyTrust data availability. type=all selects a paginated list; items\_count and number are the exposed paging inputs for that mode.

## What You Can Build

- **DA reference tools**: Connect an AnyTrust data hash to batch context.
- **Batch investigation**: Retain block ranges and commitment status for each batch.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `number` | Batch number in the single-batch response |
| `start_block_number` | Start of the reported block range |
| `end_block_number` | End of the reported block range |
| `data_availability.data_hash` | AnyTrust data hash |
| `data_availability.signers[]` | Reported signer records |
| `commitment_transaction.status` | Reported commitment-transaction status |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — Get batch by AnyTrust data hash. request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "data_hash": {
          "type": "string",
          "description": "AnyTrust data hash."
        },
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "data_hash",
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "When set to `all`, returns a paginated list of all batches for this data hash.",
          "enum": [
            "all"
          ]
        },
        "items_count": {
          "type": "integer",
          "description": "Number of items per page",
          "minimum": 1
        },
        "number": {
          "type": "integer",
          "description": "Number for paging"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "after_acc_hash": {
      "type": "string"
    },
    "before_acc_hash": {
      "type": "string"
    },
    "commitment_transaction": {
      "type": "object",
      "properties": {
        "block_number": {
          "type": "integer"
        },
        "hash": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "timestamp": {
          "type": "string"
        }
      }
    },
    "data_availability": {
      "type": "object",
      "properties": {
        "batch_data_container": {
          "type": "string"
        },
        "bls_signature": {
          "type": "string"
        },
        "data_hash": {
          "type": "string"
        },
        "signers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "trusted": {
                "type": "boolean"
              }
            }
          }
        },
        "timeout": {
          "type": "string"
        }
      }
    },
    "end_block_number": {
      "type": "integer"
    },
    "number": {
      "type": "integer"
    },
    "start_block_number": {
      "type": "integer"
    },
    "transactions_count": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/arbitrum/batches/da/anytrust/%3Cdata_hash%3E' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{
  "after_acc_hash": "<after_acc_hash>",
  "before_acc_hash": "<before_acc_hash>",
  "commitment_transaction": {
    "block_number": 0,
    "hash": "<hash>",
    "status": "unfinalized",
    "timestamp": "<timestamp>"
  },
  "data_availability": {
    "batch_data_container": "in_anytrust",
    "bls_signature": "<bls_signature>",
    "data_hash": "<data_hash>",
    "signers": [
      {
        "key": "<key>",
        "trusted": false
      }
    ],
    "timeout": "<timeout>"
  },
  "end_block_number": 0,
  "number": 0,
  "start_block_number": 0,
  "transactions_count": 0
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What changes when type=all is set?
The contract describes a paginated list of batches for the data hash. Handle that mode separately from the documented single-batch object.

### Which paging inputs are exposed?
items_count is an integer of at least 1; number is the paging number input. Do not substitute page or cursor.

### Is data_hash a transaction hash?
It identifies the AnyTrust data reference. The commitment transaction has its own hash.

### Does a returned batch imply a finalized commitment?
Check commitment_transaction.status. Preserve states such as unfinalized.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-get-batch-by-anytrust-data-hash/8a181f5c-4943-4906-b45f-924b137d6afe/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
