Skip to main content

Installation

Requirements: Node.js 18+ (uses native fetch)

Setup

Tracking Events

Direct Tracking

Fluent Builder

The PendingEvent class provides a chainable API:

PendingEvent Methods

Batch Ingestion

Send up to 100 events in a single request:

Querying Events

Retrieving a Single Event

Verification

Viewer Tokens

Alerts

Exports

Anchors

Error Handling

The SDK throws ImmutableError for API failures:

TypeScript Support

The SDK is written in TypeScript with strict mode. All request payloads and response types are fully typed.