---
title: "List contracts"
method: GET
path: "/v0/contracts"
tags: ["Contracts"]
---

# List contracts

`GET /v0/contracts`

## Request

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

List monitored contracts. Paginated; the canonical `data` array carries the contracts for the current page. The `deploy` sidecar reports the project-wide deploy state (always reflects ALL contracts, not just this page) so callers can render "X contracts pending deploy" without a second request.

## Query parameters

- `page` integer
- `size` integer

## Response `200`

Paginated list of contracts plus deploy-state sidecar

- object: Pagination cursor returned alongside `data` on every paginated list endpoint. Use these to walk pages: `has_more` is true while `page * size < total`. Combine with the matching `Page` and `Size` query parameters to request the next page.
  - `page` integer, required: 1-indexed page number echoed from the request.
  - `size` integer, required: Page size echoed from the request.
  - `total` integer, required: Total row count across all pages.
  - `has_more` boolean, required: True when more pages remain (`page * size < total`).
  - `data` Contract[], required
    - `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.
  - `deploy` object, required
    - `last_deployed_at` string, date-time, nullable, required: Timestamp of the project's last successful deploy, or null if no deploy has run yet.
    - `diff` object[], required: Difference between the contracts currently registered for the project and what's actually deployed. Drives the "contracts pending deploy" UI.

---

[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)
