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

Location Module

The LocationModule provides operations for creating, signing, and verifying location attestations using the Ethereum Attestation Service (EAS).

Common Operations

build()

Build an unsigned location attestation from input data.

Example


encode()

Encode an unsigned attestation for EAS.

Example


decode()

Decode EAS-encoded data back to attestation fields.

Example


Offchain Workflow

The offchain workflow creates EIP-712 signed attestations that can be verified without blockchain transactions.

offchain.create()

Build and sign an attestation in one step.

Example


offchain.sign()

Sign a pre-built unsigned attestation.

Example


offchain.verify()

Verify an offchain attestation’s signature.

Example


offchain.publish()

Publish an offchain attestation to storage (IPFS, etc.).

Example


Onchain Workflow

The onchain workflow registers attestations directly on a blockchain via EAS.

onchain.create()

Build and register an attestation in one step.

Example


onchain.register()

Register a pre-built unsigned attestation.

Example


onchain.verify()

Verify an onchain attestation exists and is not revoked.

Example


onchain.revoke()

Revoke an onchain attestation.

Example


Input Types

LocationAttestationInput

Supported Location Formats

Location format is auto-detected when locationType is not specified.

Output Types

OffchainLocationAttestation

OnchainLocationAttestation

VerificationResult


Coordinate Format

Coordinates use the GeoJSON standard: [longitude, latitude]

Next: Compute Module

Learn about geospatial computation methods