HTTP API
Inspect, authenticate, and execute the core Starkscan explorer API directly from the docs.
This page is meant to be used live. Authenticate once, run the first real requests here, and only then move into your own REST, SDK, CLI, or MCP integration.
Authenticate with
X-Starkscan-Api-Key in Scalar’s auth UI before running requests. X-Mezcal-Api-Key remains accepted as a legacy alias.Start with
GET /api/v1/SN_MAIN/status, then move to token reads and wallet flows.Operation paths still render as
/v1/... because the hosted /api base is defined at the OpenAPI server layer.Before Send
Make templated routes concrete before you run them.
Scalar shows route templates such as /v1/{chain}/block/{number_or_hash} until the required path parameters are filled. For block routes, use SN_MAIN for chain and latest for number_or_hash as the safest first test.
- Smoke test after auth:
GET /api/v1/SN_MAIN/status. - First block test:
GET /api/v1/SN_MAIN/block/latest?tx_limit=25. - If the response is
401or403, fix authentication first; if the URL still contains braces, fill the path parameters first.
Live explorer
Launch the live reference
The interactive Scalar client loads on demand, but this page is designed to be used as a live integration surface, not just read as static docs.