Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developer.alterscope.org/llms.txt

Use this file to discover all available pages before exploring further.

The TypeScript SDK is in beta; GA targeted for late Q2 2026. The package name and import surface in this page are stable and will not change at GA.

Install

npm install @alterscope/sdk
# or
yarn add @alterscope/sdk
Node 20+ and modern browsers are supported. The SDK ships ESM and CJS bundles.

Quick start

import { AlterscopeClient, freshnessStatusOf } from "@alterscope/sdk";

const client = new AlterscopeClient({ apiKey: process.env.ALTERSCOPE_API_KEY! });

const oracle = await client.oracles.classify({ marketId: "morpho-usdc-lending" });
console.log("freshness", freshnessStatusOf(oracle));

WebSocket and webhooks

See the full TypeScript quickstart for WebSocket subscription, webhook signature verification, retry behavior, and error handling.

Browser usage

Never embed an sk_live_ key in browser code. Mint a short-lived session token from your backend and pass it to the SDK as apiKey. The SDK does not send credentials over insecure transports.

Source

Issue tracker and source: github.com/alterscope/alterscope-ts.