Mezcal ExplorerMezcalDocs
QuickstartBuildAgentsReference
Open explorer
Documentation homeQuickstartConceptsMonitor 10 Wallets
BuildAPIAdvanced UtilitiesProtocol RoutesAPI Surface PolicySDKTypeScript SDK

Live reference

Interactive API referenceReference hub
AgentsAgent CLIMCP Quickstart
Reference Catalogs
Docs/API/Advanced Utilities

Advanced Utilities

External helper routes that are published, supported, and narrower than the main public lane.

API referenceReferenceQuickstartTypeScript SDK

In this guide

RoutesQuickstartBatch transaction previewsBatch transaction detailsBatch address summariesRules
Loading documentation content…
PreviousAPIREST API for exact request shapes, auth, pagination, and retries.NextProtocol RoutesPublic bridge-analytics protocol extension routes that sit outside the core explorer API.

On this page

RoutesQuickstartBatch transaction previewsBatch transaction detailsBatch address summariesRulesNot in this laneAgent rule
Mezcal ExplorerMezcalDocumentation

One product surface across the explorer, HTTP API, CLI, SDK, and MCP transport. The docs should guide you into the right path instead of behaving like a separate app.

Open explorerAPI referenceBack to top

Advanced utilities

Use this lane when the official public API is correct but too chatty for a controlled batch workflow.

These routes are external and supported. They are not the default starting point for new integrations.

Routes

RouteUse whenKey tier
POST /v1/{chain}/tx/previewsyou already have tx hashes and want ordered lightweight previewsutility
POST /v1/{chain}/tx/detailsyou already have tx hashes and want ordered detail hydration with bounded child payloadsutility
POST /v1/{chain}/address/summariesyou already have addresses and want ordered aggregate summaries for navigation or partner batch workflowsutility

Quickstart

Shared rules:

  • If 401, fix the missing or invalid API key before retrying.
  • If 403, fix the key tier before you blame the payload.
  • If 503, honor Retry-After and do not hammer batch helpers in a tight loop.
  • Prefer one tx or one address routes when they already do the job.
  • Do not treat these as a substitute for careful paging on high-volume lists.

Batch transaction previews

Body key must be hashes, not txHashes or transactions.

curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Mezcal-Api-Key: $MEZCAL_API_KEY" \
  -d '{"hashes":["0xabc","0xdef"]}' \
  "$MEZCAL_BASE_URL/v1/$MEZCAL_CHAIN/tx/previews"

Batch transaction details

Body key must be hashes, not txHashes or transactions.

Defaults are compact on purpose:

  • With only hashes in the request, tx/details returns logs=[] and logCount=0.
  • If you set includeLogs=true, includeLogCounts defaults to true and the response includes exact counts.
  • If you want counts without logs, set includeLogCounts=true and leave includeLogs unset or false.
curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Mezcal-Api-Key: $MEZCAL_API_KEY" \
  -d '{"hashes":["0xabc","0xdef"],"logLimitPerTx":32}' \
  "$MEZCAL_BASE_URL/v1/$MEZCAL_CHAIN/tx/details"

Batch address summaries

Body key must be addresses, not wallets, owners, or contracts.

address/summaries is optimized for bounded navigation and partner batch workflows. It returns items in request order for the addresses it can resolve. When the route reports activityCountExact=false, treat the count as intentionally inexact batch metadata, not as proof that the address has no more activity.

curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Mezcal-Api-Key: $MEZCAL_API_KEY" \
  -d '{"addresses":["0xabc","0xdef"]}' \
  "$MEZCAL_BASE_URL/v1/$MEZCAL_CHAIN/address/summaries"

Use GET /v1/{chain}/address/{address}/activity, GET /v1/{chain}/address/{address}/token-holdings, exact GET /v1/{chain}/token/{token}/balance-of/{address}, or filtered GET /v1/{chain}/token/{token}/transfers when freshest per-address evidence matters.

Rules

  • The request body key is hashes for tx/previews.
  • The request body key is also hashes for tx/details.
  • The request body key is addresses for address/summaries.
  • 401 Unauthorized means the key is missing or invalid; fix auth before retrying.
  • tx/details rejects duplicate hashes, including padded and unpadded variants of the same tx hash.
  • tx/details returns the detail shape in request order for the found hashes, but this batch route can set logsTruncated or tokenTransfersTruncated per item.
  • tx/details is intentionally capped more tightly than tx/previews; keep batches small and split large hydration jobs client-side.
  • address/summaries is for controlled batch hydration, not canonical freshness proof.
  • 403 Forbidden usually means the key lacks utility access.
  • 503 Service Unavailable means back off and honor Retry-After when it is present.
  • Use this lane for published batch helpers, not canonical single-item proofs.
  • If a simpler official route fits the job, use the simpler route.

Not in this lane

These helper routes are intentionally not part of the published advanced-utilities lane today:

  • POST /v1/{chain}/address/{address}/portfolio-live
  • POST /v1/{chain}/contract/{address}/write-payload
  • GET /v1/{chain}/contract/{address}/snapshot

Why:

  • they are easier to misuse without context
  • some are wallet-helper or operational routes rather than core explorer reads
  • contract/{address}/snapshot is a best-effort composed helper, not canonical chain truth

Agent rule

If a route is not in /api-reference, Protocol routes, or this page, do not assume it is part of the external contract.