> ## Documentation Index
> Fetch the complete documentation index at: https://astral-6ef288be-claude-ascii-globe-mouse-interaction-bupya.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /intersects

> Check if two geometries overlap

<Warning>
  **Research Preview** — This API is under development.
</Warning>

# Intersects

Check if two geometries intersect (share any portion of space).

```
POST /compute/v0/intersects
```

## Request Body

<ParamField body="chainId" type="number" required>
  Target chain ID (e.g., 84532 for Base Sepolia, 8453 for Base).
</ParamField>

<ParamField body="geometry1" type="Input" required>
  First geometry to check.
</ParamField>

<ParamField body="geometry2" type="Input" required>
  Second geometry to check.
</ParamField>

<ParamField body="schema" type="string" required>
  EAS schema UID to issue the attestation against.
</ParamField>

<ParamField body="recipient" type="string">
  Ethereum address to receive the attestation. Defaults to zero address if not provided.
</ParamField>

## Example Request

```bash theme={null}
curl -X POST https://api.astral.global/compute/v0/intersects \
  -H "Content-Type: application/json" \
  -d '{
    "chainId": 84532,
    "geometry1": "0xpolygon1...",
    "geometry2": "0xpolygon2...",
    "schema": "0xschema...",
    "recipient": "0xdef456..."
  }'
```

## Example Response

```json theme={null}
{
  "result": true,
  "operation": "intersects",
  "timestamp": 1706400000,
  "inputRefs": [
    "0xpolygon1...",
    "0xpolygon2..."
  ],
  "attestation": {
    "schema": "0x...",
    "attester": "0x...",
    "recipient": "0xdef456...",
    "data": "0x...",
    "signature": "0x..."
  },
  "delegatedAttestation": {
    "signature": "0x...",
    "attester": "0x...",
    "deadline": 1706403600
  }
}
```

## Notes

* Uses PostGIS `ST_Intersects` function
* Returns `true` if geometries share any space (including boundaries)
* More permissive than `contains` — touching boundaries count as intersection

<Card title="SDK Method" icon="code" href="/sdk/compute#intersects">
  See `astral.compute.intersects()`
</Card>
