Skip to main content
The @alphscan/sdk package is the core JavaScript/TypeScript client for the Alphscan API. It provides a typed, promise-based interface for all public and authenticated endpoints.

Repository & package

Repositories are under the AlphScan organization. Packages are private on npm for now and will be public at release.

Features

  • Typed APIs for tokens, transactions, plans, keys, and payments
  • Settings from env or code — use ALPHSCAN_API_URL, ALPHSCAN_API_KEY, etc., or pass options to alphscan()
  • Raw request — call any API path with client.request(method, path, body?)
  • ESM — ships as ES modules with TypeScript types

Package

Quick example

Client surface

Next steps

Installation

Install and configure the SDK.

Client & settings

Create the client and configure API URL, key, and env.

Token API

List tokens with pagination.

Transaction API

Fetch normalized events for a transaction.

System API

Plans, keys, and payments.

Raw request

Call any endpoint with request().