Area
Calculate the area of a polygon in square meters.Request Body
number
required
Target chain ID (e.g., 84532 for Base Sepolia, 8453 for Base).
Input
required
The polygon geometry to measure.
string
required
EAS schema UID to issue the attestation against.
string
Ethereum address to receive the attestation. Defaults to zero address if not provided.
Example Request
Example Response
Notes
- Uses PostGIS
ST_Areafunction with geodetic calculation - Result is in square meters with square centimeter precision
- Only valid for polygon geometries
SDK Method
See
astral.compute.area()