Area
Calculate the area of a polygon in square meters.Request body
Target chain ID (e.g.,
84532 for Base Sepolia).The polygon geometry to measure. See Input types for accepted formats.
EAS schema UID. The server uses a default schema if not provided.
Ethereum address to receive the attestation. Defaults to the zero address.
Example request
Response
Returns a NumericComputeResponse.Area in square meters (e.g.,
5432.10).Always
"square_meters".Always
"area".Unix timestamp of computation.
Array of input references.
Signed EAS attestation. See AttestationData.
Signature for delegated onchain submission. See DelegatedAttestationData.
Example response
Notes
- Uses PostGIS
ST_Areawith geodetic calculation - Result is in square meters with square centimeter precision
- The onchain attested value is scaled to square centimeters (integer) for EVM compatibility
- Only valid for polygon geometries
SDK Method
See
astral.compute.area()