What's New
Unified SDK with namespaced location and compute modules.
New API
import { AstralSDK } from '@decentralized-geo/astral-sdk';
const astral = new AstralSDK({ chainId: 84532, signer: wallet });
// Location workflows
const signed = await astral.location.offchain.create(input);
const registered = await astral.location.onchain.create(input);
// Compute (verifiable geospatial)
const distance = await astral.compute.distance(from, to);
const area = await astral.compute.area(geometry);Features
- Namespaced modules:
astral.location.*,astral.compute.* - Multi-chain support: Sepolia, Base, Arbitrum, Celo, Optimism, Base Sepolia
- ComputeModule: Verifiable geospatial computations via Astral API
- Multi-schema support: Custom attestation schemas
Migration from v0.1.x
| Old Method | New Method |
|---|---|
sdk.buildLocationAttestation() |
astral.location.build() |
sdk.signOffchainLocationAttestation() |
astral.location.offchain.sign() |
sdk.createOnchainLocationAttestation() |
astral.location.onchain.create() |
Full Changelog: v0.1.4...v0.2.0