Contains
Check if a geometry is inside a container geometry.Request body
Target chain ID (e.g.,
84532 for Base Sepolia).The containing geometry (typically a polygon). See Input types for accepted formats.
The geometry to check — is this inside the container?
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 BooleanComputeResponse.true if the containee is inside the container, false otherwise.Always
"contains".Unix timestamp of computation.
Array containing
[containerRef, containeeRef].Signed EAS attestation. See AttestationData.
Signature for delegated onchain submission. See DelegatedAttestationData.
Example response
Notes
- Uses PostGIS
ST_Containsfunction - The container must completely contain the geometry for
true - Points on the boundary may return
false— use intersects for boundary cases
The field for the inner geometry is
containee, not geometry. This naming distinguishes the two inputs unambiguously.SDK Method
See
astral.compute.contains()