API Reference
Astral provides two REST APIs:Compute API
Distance, containment, proximity checks with signed attestations
Records API
Query existing location attestations across chains
Compute API
The Compute API performs verifiable geospatial operations and returns signed attestations.Base URL
Authentication
Phase 1 (MVP)
No authentication required. Rate limiting by IP address.Phase 2 (Future)
Wallet-based authentication with signed requests.Input Types
All endpoints accept geometry inputs in these formats:Response Format
All successful responses include:Error Format
Errors follow RFC 7807 (Problem Details for HTTP APIs):Error Types
Rate Limits
During development and testing, you may hit rate limits quickly. Consider caching results or using a test wallet for higher limits.
Chain Configuration
The following table shows addresses for supported chains. The Attester Address is the address that signs delegated attestations—resolver contracts must verify attestations come from this address.Available Endpoints
POST /distance
Distance between two geometries
POST /contains
Is geometry B inside geometry A?
POST /within
Is point within radius of target?
POST /intersects
Do geometries overlap?
POST /area
Area of a polygon
POST /length
Length of a line