---
title: "Get contract"
method: GET
path: "/v0/contracts/{chain}/{address}"
tags: ["Contracts"]
---

# Get contract

`GET /v0/contracts/{chain}/{address}`

## Request

- Base URL: `https://api.formo.so`
- URL: `https://api.formo.so/v0/contracts/{chain}/{address}`
- Auth: HTTP bearer

Fetch a single monitored contract by chain ID and address. Returns the bare `Contract` resource (no envelope).

## Path parameters

- `chain` integer, required
- `address` string, required

## Response `200`

Contract found

- Contract
  - `name` string, required
  - `chain` integer, required
  - `address` string, required
  - `start_block` integer
  - `abi` string, required
  - `events` object[], required
    - `anonymous` boolean, required
    - `inputs` object[], required
    - `name` string, required
    - `type` string, required
  - `include_in_pipeline` boolean, required: Whether the contract is configured for the project contract-events pipeline. This is the desired membership, not live deployment state: use the `deploy` sidecar on the contract list to see what is currently deployed.

## Other responses

- `400`: The request was rejected. `code` is either `INVALID_VALIDATION_REQUEST` (Zod schema mismatch; `details` carries a `{ fieldPath: message }` map) or `BAD_REQUEST` (semantic validation failure outside Zod, e.g. mismatched IDs, business-rule violations). Branch on `code`, not status, to tell the two apart.
- `401`: Missing or invalid API key.
- `403`: The API key is valid but lacks the required scope for this endpoint.
- `404`: The requested resource does not exist or is not visible to this API key's workspace.
- `500`: An unexpected error occurred on the server. The error has been logged; retry with exponential backoff.

---

[API](https://skmtc.dev/formo/apis/formo-public-api.md) · [All operations](https://skmtc.dev/formo/apis/formo-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/formo/apis/formo-public-api/revisions/67ada57df63c?raw)
