Mezcal ExplorerMezcalDocs
QuickstartBuildAgentsReference
Open explorer
Documentation homeQuickstartConceptsMonitor 10 Wallets
BuildLaunch MatrixAPIAdvanced UtilitiesAgent HTTP quickstartRate limitsRoute examplesSelf-serve account routesSDKTypeScript SDK

Live reference

Interactive API referenceReference hub
AgentsAgent CLIMCP Quickstart
Reference Hub
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

RoutesRelated non-default routeQuickstartBatch transaction previewsBatch address summariesRules
Loading documentation content…
PreviousAPIHow to call Starkscan REST—base URL, auth, lists, errors. Paths live in the API reference.NextAgent HTTP quickstartGive an agent a bounded Starkscan HTTP contract without making it guess base paths, auth, or route scope.

On this page

RoutesRelated non-default routeQuickstartBatch transaction previewsBatch 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}/address/summariesyou already have addresses and want ordered aggregate summaries for navigation or partner batch workflowsutility

Related non-default route

This lane is about supported routes that sit outside the default read-key starting set.

GET /v1/{chain}/token/{token}/holders is also in that category, but it is partner tier rather than utility.

  • use it when you start from a token contract and need a paginated holder census
  • results come from indexed balance snapshots, not transfer-history replay
  • treat 403 there as access-tier evidence, not as a malformed request

Example:

curl \
  -H "X-Starkscan-Api-Key: $MEZCAL_API_KEY" \
  "$MEZCAL_BASE_URL/v1/$MEZCAL_CHAIN/token/<token>/holders?limit=100"

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-Starkscan-Api-Key: $MEZCAL_API_KEY" \
  -d '{"hashes":["0xabc","0xdef"]}' \
  "$MEZCAL_BASE_URL/v1/$MEZCAL_CHAIN/tx/previews"

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-Starkscan-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 addresses for address/summaries.
  • 401 Unauthorized means the key is missing or invalid; fix auth before retrying.
  • 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 or this page, do not assume it is part of the external contract.