Skip to main content
Research Preview — The SDK is under development.

Migration Guide: v0.1.x to v0.2.0

This guide covers the breaking changes and migration steps for upgrading from Astral SDK v0.1.x to v0.2.0.

Overview of Changes

What Changed

  1. Namespaced API: Methods are organized under location.offchain.*, location.onchain.*, and compute.*
  2. New Compute Module: The compute.* namespace provides verifiable geospatial operations
  3. Simplified Configuration: Single AstralConfig for initialization

What Stayed the Same

  • Core attestation types (UnsignedLocationAttestation, OffchainLocationAttestation, OnchainLocationAttestation)
  • Location format support (GeoJSON, WKT, H3, coordinates)
  • EAS integration and schema encoding

Package Changes

Before (v0.1.x)

After (v0.2.0)


Initialization Changes

Before (v0.1.x)

After (v0.2.0)


Method Migration Table

Location Module

Offchain Workflow

Onchain Workflow

Compute Module


Code Migration Examples

Example 1: Creating an Offchain Attestation

Before (v0.1.x)

After (v0.2.0)


Example 2: Creating an Onchain Attestation

Before (v0.1.x)

After (v0.2.0)


Example 3: Geospatial Computation

Before (v0.1.x)

After (v0.2.0)


Example 4: Full Workflow

Before (v0.1.x)

After (v0.2.0)


Configuration Changes

Before (v0.1.x)

After (v0.2.0)


Legacy Support

If you need to maintain backward compatibility during migration, the v0.1.x API is available via AstralSDKLegacy:
AstralSDKLegacy is deprecated and will be removed in v0.3.0. Migrate to the new API before then.

TypeScript Import Changes

Before (v0.1.x)

After (v0.2.0)


Need Help?

If you encounter issues during migration:
  1. Check the SDK Overview for complete API reference
  2. Review the Location Module and Compute Module documentation
  3. Join our Telegram community for support
  4. Open an issue on GitHub

Back: SDK Overview

Return to SDK overview