SDK
First-party Starkscan SDK guidance and typed client entry points.
SDK
The first-party SDK is the stable TypeScript package for consuming Starkscan from app code. It uses the same Starkscan API key and hosted API base as REST, CLI, and MCP launcher flows.
Why use it
It gives you:
- typed responses
- consistent auth handling
- request ID propagation
- the same public transport contract used by the explorer
Current label
| Surface | Public label | What works today |
|---|---|---|
| REST core API | certified | The route-level certified launch set remains the production-safe base contract. |
| TypeScript SDK | stable | @starkscan/sdk resolves to 0.1.2; pin exact @starkscan/[email protected] for unattended services. |
| Agent CLI | stable | Use the CLI for shell workflows and local exports with the same key; @starkscan/cli resolves to the same stable train. |
| Hosted MCP | hosted beta / stable launcher | Hosted MCP uses https://api.starkscan.co/mcp on the API domain or {appBaseUrl}/api/mcp on app-origin deployments. @starkscan/mcp is the local launcher. |
Start here
Install mindset
For external users, @starkscan/sdk is the live package-manager path and
currently resolves to 0.1.2. Pin an exact version before unattended
production use. Artifact installs remain a fallback for controlled distribution
and verification.