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

EAS Integration

The Astral SDK integrates deeply with the Ethereum Attestation Service (EAS) for both location attestations and geospatial computation results.

Overview

Astral uses EAS in two ways:
  1. Location Attestations: Store location data as EAS attestations (offchain or onchain)
  2. Compute Results: Store verified computation results via delegated attestations

Delegated Attestations

The compute module uses the EAS delegated attestation pattern for submitting results onchain.

How It Works


Submitting Delegated Attestations

Basic Submission

Gas Estimation


Delegated Attestation Structure

The delegatedAttestation object contains everything needed for submission:

Signature Expiry

Delegated attestation signatures have a deadline. Check before submitting:

Verifying in Smart Contracts

Resolver contracts can verify attestations came from Astral:

Location Attestation Schemas

Location attestations use a standard EAS schema:

Encoding/Decoding


EAS Contract Addresses

The SDK automatically uses the correct EAS contract address based on chainId:

Offchain vs Onchain Attestations

Offchain (EIP-712 Signed)

  • No gas cost to create
  • Stored off-chain (IPFS, your server, etc.)
  • Verified by recovering signer from signature
  • Use astral.location.offchain.*

Onchain (Blockchain Stored)

  • Gas cost to create
  • Stored in EAS contract
  • Verified by querying blockchain
  • Use astral.location.onchain.*

Custom Schemas

You can use custom EAS schemas for location attestations:

Back: SDK Overview

Return to SDK overview