Contains
Check if a geometry is inside a container geometry.Request Body
Target chain ID (e.g., 84532 for Base Sepolia, 8453 for Base).
The containing geometry (typically a polygon). Can be a UID, GeoJSON, or offchain attestation reference.
The geometry to check. Can be a UID, GeoJSON, or offchain attestation reference.
EAS schema UID to issue the attestation against.
Ethereum address to receive the attestation. Defaults to zero address if not provided.
Example Request
Response
true if the geometry is inside the container, false otherwiseAlways “contains”
Unix timestamp of computation
Array containing [containerRef, geometryRef]
Example Response
Notes
- Uses PostGIS
ST_Containsfunction - The container must completely contain the geometry for
true - Points on the boundary may return
false(useintersectsfor boundary cases)
SDK Method
See
astral.compute.contains()