Skip to main content

Base URL

https://staging-api.astral.global

Endpoints

# Health check
curl https://staging-api.astral.global/health

# API info
curl https://staging-api.astral.global/

Configuration

SettingValue
ChainBase Sepolia (84532)
EAS Contract0x4200000000000000000000000000000000000021
Attester Address0x590fdb53ed3f0B52694876d42367192a5336700F

Example Request

curl -X POST https://staging-api.astral.global/compute/v0/distance \
  -H "Content-Type: application/json" \
  -d '{
    "chainId": 84532,
    "from": {"type": "Point", "coordinates": [-122.4194, 37.7749]},
    "to": {"type": "Point", "coordinates": [-73.9352, 40.7128]}
  }'

Verifying signatures

All attestations from the staging service are signed by the attester address above. To verify a result came from Astral’s staging environment:
require(attestation.attester == 0x590fdb53ed3f0B52694876d42367192a5336700F, "Not from Astral staging");
const ASTRAL_STAGING_SIGNER = '0x590fdb53ed3f0B52694876d42367192a5336700F';
// Verify the EAS attestation's attester field matches

Notes

  • No authentication required
  • Rate limited to 100 requests/hour per IP
  • Attestations are signed with the staging key — a different key will be used for production