What is Astral Location Services?
Astral Location Services is a geospatial policy engine that connects location-based logic to smart contracts on Ethereum. Think of it as a geofencing oracle for onchain applications. We provide spatial operations (distance, containment, intersection) that run in a trusted execution environment and produce signed attestations you can use to trigger onchain actions.Geofencing
Check if locations are within boundaries, enable region-based logic and territorial restrictions
Location-Aware Smart Contracts
Trigger onchain actions based on real-world proximity, distance, and spatial relationships
Proof-of-Visit
Verify users visited specific locations and reward them with tokens, NFTs, or access rights
Spatial Policies
Create verifiable location-based rules that execute automatically through EAS resolvers
The Core Flow
- Input: Location records — EAS attestations or raw GeoJSON
- Processing: Geospatial computations in a verifiable environment (TEE with PostGIS)
- Output: Signed Policy Attestations submitted to EAS, triggering resolver contracts
Quick Example
Why Astral?
The Problem
Ethereum has no idea where things are happening. Smart contracts can’t create location-aware logic or reason about real-world geography — they can’t natively perform geospatial computations, verify location claims, or check spatial relationships like “is this point inside this boundary?” or “how far apart are these two locations?” Without verifiable geocomputation, any location-based policy check can’t be trusted onchain. Even if you have verified location data, an attacker could simply fabricate the computation results.The Solution
Astral solves this by providing:- Verifiable Computation — Spatial operations run in a TEE (trusted execution environment), producing cryptographically signed results
- Geospatial Policy Engine — PostGIS-powered computations for distance, containment, intersection, and more
- EAS Integration — Results are attestations that trigger resolver contracts for onchain actions
What about location verification? GPS is spoofable, and verifying where a user actually is remains an open problem. We’re developing the Location Proof framework to address this. Astral Location Services provide the geospatial policy layer that location proofs will plug into.
What You Can Build
Local Currencies
Token swaps that only work if you’re in the region
Proof-of-Visit NFTs
Collectibles for visiting landmarks
Neighborhood DAOs
Governance tokens for local residents
Delivery Verification
Escrow that releases when packages arrive
The SDK
The Astral SDK provides a namespaced API for location attestations and geospatial computations:SDK Reference
Full SDK documentation
Architecture Overview
The Geospatial Policy Engine runs inside EigenCompute’s TEE with PostGIS embedded, enabling verifiable computation. Policy Attestations are submitted to EAS contracts, which trigger your resolver contracts for onchain actions.Next: Quickstart
Build your first location-gated smart contract