Skip to main content
Development Preview — The SDK is under development.
v0.2.0 Unified SDK — The SDK now provides a unified API with namespaced modules. Location attestations and geospatial computations are now in a single package: @decentralized-geo/astral-sdk.

SDK Overview

The Astral SDK is the official TypeScript client for Astral Location Services, providing a unified interface for location attestations and verifiable geospatial computations.

Design Philosophy

  • Namespaced API: Clear separation between location and compute operations
  • Workflow-oriented: Distinct offchain and onchain workflows for location attestations
  • Type-safe: Full TypeScript support with comprehensive types
  • Batteries included: Handles signing, encoding, and EAS integration

Package Structure

Quick Start

Key Concepts

Namespaced Modules

Clear separation: location.offchain.*, location.onchain.*, and compute.*

Flexible Inputs

Accept UIDs, raw GeoJSON, or attestation objects interchangeably.

Delegated Attestations

SDK handles the delegated attestation pattern — you pay gas, Astral is attester.

Type Safety

Full TypeScript types for all inputs, outputs, and options.

Configuration

Module Architecture

Pages

Installation

Install and configure the SDK

Location Module

Offchain and onchain attestation workflows

Compute Module

Geospatial computation methods

Migration Guide

Migrate from v0.1.x to v0.2.0